I’ve been learning xhtml and CSS3 on my own for a year now… i’m in college. Look at this picture
I noticed something that looked exactly like that page while learning php. Because it’s very basic I recoded it own my own, show me how you would go about it. Would you use division blocks(div) or tables?
Here are options(colors,fonts,images)
-rgb(10,209,255) , light blue
-rgb(255,255,255) , white
-h1
hint* with tables i found i could make the page perfectly aligned. not just guess work
oh i did not thinking of adding a padding left. I will post a version of tables to show it can perfectly vertically align the white block, horizontally to the explore picture.
The VERTICAL align DOES NOT happen by default. There are many options, but they depend on what your content is.
One example, you could create a header area…
<div id=“header”>
<div id=“brand”><img src="yourimg.jpg><div><h1>hello world</h1>
<div> #header {display:table;} #brand, #header h1{display:table-cell; vertical-align:middle}
ad widths as needed. This method is not legacy IE friendly tho.
alternatively, you could use: #header div, #header h1, #header div img {display: inline-block; vertical-align: middle; display:-moz-inline-box; }
which, I think, works back to FF2.0 and IE6 (or 7)