You are here: problem with dynamic width div not filling with a color correctly « HTML « IT news, forums, messages
problem with dynamic width div not filling with a color correctly

Posted by John Dalberg on 10/18/06 01:07

I am creating a header which consists of two adjacent images and filling
the rest of the header width with a solid color so that different
resolutions have the same header. The effect works fine in IE (my users use
IE only) but there's a gap between the header and the rest of the page
which I can't get rid off. (The effect is also broken in Firefox but that's
not important)

How can I remove the gap (and make it work in FF also if possible )?

Tony

code below:
<style type="text/css">
#p3
{
background-repeat: repeat-x;
background-color: #5D7FA4;
width: auto;
float: left;
}

#p2
{
float: left;
}
</style>


header section:

<div id="p1" style="FLOAT: left; width: 202px; "><img
src="images/logo.jpg" border="0" alt="" width="202" height="64">
</div> <div id="p2"><img src="images/header_text.jpg" width="558"
height="64" border="0" alt=""> </div>
<div id="p3">
<img src="images/clearpixel.gif" width="100%" height="61">
</div>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация