Page 1 of 1

bottom distance

Posted: Sun Feb 10, 2008 8:03 am
by m2babaey
Hi
I want an image displayed at the bottom of a page. I used obsolute position with bottom=0:

Code: Select all

{
position:absolute;
left:5px;
bottom:0px
}
but it appears at the bottom of the user's screen not the page. is there a solution?
please visit my code result at:http://rooyekhat.net/projects/meraj.html
thanks

Re: bottom distance

Posted: Fri Feb 15, 2008 9:07 am
by Popcorn
hi,
this sounds like it has something to do with the ancestor elements of your image. in particular it seems that the containing block is evaluating to the viewport.
check http://www.w3.org/TR/CSS21/visudet.html ... ck-details

my rough :S guess is making:

Code: Select all

<body style="position:absolute;">
but this could affect other styling...