Go Back   Ultimate Web Site Drop Down Menu Forum > Web Development > CSS and HTML
Register FAQ Members List Calendar Today's Posts

Reply
Thread Tools Display Modes
Unread 10-06-2008, 08:36 AM
david123 david123 is offline
Junior Member
Join Date: Oct 2008
Posts: 1
  #1  
Default 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?

Last edited by david123 : 10-10-2008 at 09:54 AM.
Reply With Quote
Unread 10-06-2008, 03:07 PM
vinyl-junkie vinyl-junkie is offline
Moderator
Join Date: Aug 2007
Posts: 114
  #2  
Default

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.
__________________
Music Around The World - Collecting tips, trade
and want lists, album reviews, & more
SNAP to it!
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 05:50 AM.


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