Ultimate Web Site Drop Down Menu Forum

Ultimate Web Site Drop Down Menu Forum (http://www.udm4.com/forum/index.php)
-   CSS and HTML (http://www.udm4.com/forum/forumdisplay.php?f=8)
-   -   Simple positioning problem.... (http://www.udm4.com/forum/showthread.php?t=2255)

david123 10-06-2008 08:36 AM

Simple positioning problem....
 
Hello,

I am working on a site and have some problem...

I have a colored bar that goes right the way across the page at the bottom, 50px from the bottom... I want it to always be this distance which i have achieved with position:absoloute...

but the problem is if the users screen is small, or they have resized the browser window the coloured bar overlaps the content of the page as its positioned absoloute to the page...

how could i get it to stay the 50px from the bottom... unless it reaches the bottom on the main content div? then it stays there and goes off the screen?

any suggestion?

vinyl-junkie 10-06-2008 03:07 PM

Make the positioning relative and do:

Code:

padding-bottom: 50px;
to achieve the positioning of 50px from the bottom of the screen.

You have other problems with the way you've coded this, mainly that you are expressing widths in terms of pixels rather than percentage. By expressing widths in percentage, you have the flexibility of being able to render your pages better in more browser resolutions while minimizing horizontal scrolling.


All times are GMT. The time now is 11:11 AM.

Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.