You are here: left and right align to images in a div « HTML « IT news, forums, messages
left and right align to images in a div

Posted by Jon Slaughter on 04/13/07 20:35

..Header {
position:fixed;
height:110px;
top:0px;
right:0px;
width:100%;
background-image:url(images/Nav2.png);
background-repeat:repeat-x;
z-index:10;

}

<div class="Header">
<img src="images/Nav1.png" style="left:0px; top:0px;"/>
<img src="images/Nav3.png" style="right:0px; top:0px;"/>
</div>

I have a div that I want to stick an image onto the left of it and one on
the right. Unfortunately the right image is not aligning itself to the
right of the div. Whats wrong with my logic? Should right:0px tell the
second image tag to position itself relative to the right of the div?

Or shouldn't there be any way to right align the cordinates? (so default is
to draw from right to left instead of left to right?

thanks,
Jon

 

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

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