bottom distance

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

bottom distance

Post 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
User avatar
Popcorn
Forum Commoner
Posts: 55
Joined: Fri Feb 21, 2003 5:19 am

Re: bottom distance

Post 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...
Post Reply