|
Posted by Jon Slaughter on 04/13/07 21:16
"Ben C" <spamspam@spam.eggs> wrote in message
news:slrnf1vqtc.7bg.spamspam@bowser.marioworld...
> On 2007-04-13, Jon Slaughter <Jon_Slaughter@Hotmail.com> wrote:
>> .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?
>
> In what you've posted, there's nothing to make the img elements
> absolutely positioned. They need position: absolute. For position:
> static, the default, "left", "right" and "top" do nothing.
ok. I added it and it works. Guess I need to read up on positioning.
Thanks,
Jon
Navigation:
[Reply to this message]
|