Hi, I have just converted my code so that it is using the html5 tags, the pages have validated fine and look good in all browsers, until minimize is hit! everything moves, does anyone have any suggestions, ive tried, position: inline; margin: 0 auto; nothing seems to work? Thanks
CSS
/*browser render HTML 5 elements as a block */
header,footer,section,nav {
display: block;
}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
}
#wrapper {
margin: 0 auto;
width: 922px;
}
#head {
width: 900px;
color: #333333;
padding: 10px;
border: 1px solid #cccccc;
height: 150px;
margin: 0 auto;
background: #b6a799;
background-image: url(../images/logo.jpg);
background-position: 140px;
background-repeat: no-repeat;
}
nav {
top: 150px;
}
#personal{
position: absolute;
top: 130px;
left: 710px;
font-style: oblique;
font-family: "serif";
color: #f2f2e6;
}
img.float {
float:left;
margin: 5px;
}
#about {
position: absolute;
top: 200px;
left: 720px;
}
#content {
width: 900px;
color: #333333;
border: 1px solid #cccccc;
background: #f2f2e6;
margin: 0px 0px 5px 0px;
padding: 10px;
height: 470px;
position: absolute;
top: 190px;
left: 330px;
}
ul#nav {
margin: -10px;
padding: 0;
list-style: none;
}
ul#nav li {
display: inline
}
ul#nav li a {
text-decoration: none;
padding: 5px 0;
width: 85px;
color: #000000;
float: left;
}
ul#nav li a {
text-align: center;
border-right: 1px solid #333333;
border-bottom: 1px solid #333333;
}
ul#nav li a:hover {
background-color: #4b3524;
color: #ffffff;
}
a {
border: none;
text-decoration: underline;
color: #ffffff
}
ul#grid{
padding: 0;
list-style: none;
margin: 20px auto 0;
width: 540px;
float: right;
top: 130px;
}
#grid li {
float: left;
padding: 0;
margin: 0 5px 10px 5px;
}
#grid li a {
display: block;
}
#grid li img {
background-color: white;
padding: 7px; margin: 0;
border: #58595b;
width: 200px;
height: 200px;
}
#grid li a:hover img {
opacity:0.9;filter:alpha(opacity=90);
}
footer {
color: #333333;
width: 900px;
border: 1px solid #cccccc;
background: #4b3524;
margin: 0px 0px 10px 0px;
padding: 10px;
color: #f2f2e6;
position: absolute;
top: 687px;
left: 330px;
}