Hi folks, Just a quick questions for the html/css buffs out there.
Ive been trying to get this right for some time but its driving me totally nuts…?
oK.. i am trying to build a nice page without tables. I have a lovely header that looks ok but when i check the page in the dreaded 800×600 the page will break and a banner that is in the header will collapse and form a new row…
Its ok in everything else…
The html..
[code=html]<body>
<div class=”header”>
<div class=”headleft”><a href=”main.htm”><img src=”img/logo.gif” alt=”Logo” /></a></div>
<div class=”headright”><img src=”img/leaderboard.gif” alt=”Logo” /></div>
</div>
css..
[CODE]body {
margin:0;
font-family: verdana;
font-size: 12px;
color: #000000;
}
.header {
width:100%;
height:100px;
background-color: #FFDFDF;
padding: 5px;
}
.headleft {
float:left;
}
.headleft img {
border: 0;
}
.headright {
float:left;
padding-left: 10px;
}
.headright img {
border: 0;
}
I really dont want to have to use a table i with this but i just cant seem to find a way of keeping it all in line when checking in 800×600.
Any hints or ideas would be very welcome..
Thanks..?