|
Posted by Ben C on 04/13/07 20:46
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.
Navigation:
[Reply to this message]
|