I'm trying to create an xhtml 1.0 compliant page where the header has 3 seperate images spread along it, aligned far left, middle and far right, which move as the browser is resized or with different resolutions.
I want it to look like the header of (please don't view this in anything other than IE! It really doesn't work very well, which is why I'm trying to make it xhtml compliant!) which uses tables for the layout.
So far I have:
and the css looks like:
So far, the left and right images are fine, I just can't centre the middle one.
To be honest, it's no biggie, it looks ok as it is, but that's what the client asked for, so who am I to argue?
Cheers
ben
----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"
NoFX-The Decline
----------------------------------------------
Want to get great answers to your Tek-Tips questions? Have a look at F
I want it to look like the header of (please don't view this in anything other than IE! It really doesn't work very well, which is why I'm trying to make it xhtml compliant!) which uses tables for the layout.
So far I have:
Code:
<div id="header">
<img id="header1" src="_images/header1.gif" alt="BeatCrime.info (logo)"/>
<img id="header2" src="_images/header2.gif" alt="Get the Picture of Crime on Your Beat" />
<a href="[URL unfurl="true"]http://www.wypa.org.uk"><img[/URL] id="header3" src="_images/header3.gif" alt="West Yorkshire Police Authority (logo)" class="link" /></a>
</div>
<div id="main">...
Code:
#header {
width:100%;
background-image: url('_images/header4.gif');
margin-top: 5px;
margin-bottom: 5px;
float: left;
}
#header1 {
float:left;
}
#header2 {
float:left;
}
#header3 {
float:right ;
}
#main {
width: 100%;
float: left;
}
To be honest, it's no biggie, it looks ok as it is, but that's what the client asked for, so who am I to argue?
Cheers
ben
----------------------------------------------
Ben O'Hara "Where are all the stupid people from...
...And how'd they get so dumb?"

----------------------------------------------
Want to get great answers to your Tek-Tips questions? Have a look at F