| | |
bottom 20 px from "canvas" NOT screen - possible ?
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2008
Posts: 2
Reputation:
Solved Threads: 0
Hello to all
Can anyone help me ?
I'd like to create a box whose bottom is always 20 px from the bottom of the "canvas" (=the total area rendered by the browser).
This is straightforward when the height of the canvas is less than the screen height
But tricky when the canvas is taller than the screen-height.
Is this possible with CSS ? If so, how ?
Thanks for help !
Can anyone help me ?
I'd like to create a box whose bottom is always 20 px from the bottom of the "canvas" (=the total area rendered by the browser).
This is straightforward when the height of the canvas is less than the screen height
But tricky when the canvas is taller than the screen-height.
Is this possible with CSS ? If so, how ?
Thanks for help !
Yes. Use absolute positioning and set bottom attribute to 20px.
css Syntax (Toggle Plain Text)
position:absolute; bottom:20px;
Lost time is never found again.
- Benjamin Franklin
- Benjamin Franklin
Validate the page with the W3C. You could have an open element or an error causing this to not work.
Just to see what it should do, create a blank html page and put only the following into the body of the document:
Just to see what it should do, create a blank html page and put only the following into the body of the document:
html Syntax (Toggle Plain Text)
<div style="position:absolute; bottom:40px"> This div should be 40px from the bottom. </div> <div style="position:absolute; bottom:20px"> This div should be 20px from the bottom. </div> <div style="position:absolute; bottom:0"> This div should be at the bottom of the page. </div>
Lost time is never found again.
- Benjamin Franklin
- Benjamin Franklin
![]() |
Other Threads in the HTML and CSS Forum
- Previous Thread: Firefox floating div problem
- Next Thread: Input Button Background with i18n problem
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash font fonts form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl





