Hi, I'm trying to get two images into my header. One is the main header. it's a home page link and a <h1>. The other is an advert which links elsewhere. I'd like the main header to be aligned to the left of the screen and the advert to be aligned to the right.
There's a few ways I've tried to achieve this but both look messy (code-wise). What is the best practice for this?
Here is some sample code:
This way I get the results I desire but I'm not sure if it's 'best practice'. What do you suggest?Code:<div id="header"> <div id="headerimg"> <h1><a href="index.html"><img src="header.gif"></a></h1> </div> <a href="sponsor.html"><img src="ad.gif"></a> </div> #header { text-align: right; height: 85px; ** The height of both images } #headerimg { float: left; width: 520px; ** The width of the main header }







Bookmarks