Old 31-07-2006, 14:56   #1 (permalink)
b v
Senior Member
 
b v's Avatar
 
Join Date: May 2006
Posts: 462
basic CSS questions

On this page , the text within the div class "content" 's height extends the page's height. The two outer div's "left" and "right" (gradients) are set to 100% height, but do not stretch the entire page like they should. I've set the body height to 100%, but no luck. Any ideas?
  Reply With Quote
Old 31-07-2006, 15:13   #2 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,513
You'll be wanting Faux Columns then.

http://alistapart.com/articles/fauxcolumns/
__________________
  Reply With Quote
Old 31-07-2006, 17:31   #3 (permalink)
b v
Senior Member
 
b v's Avatar
 
Join Date: May 2006
Posts: 462
Thank you for posting that Cam, but after implementing that method, the same problem is occuring. The vertically tiled bg image is set to stretch 100% height. However, it doesn't because of the content height. Im really stuck on this.
  Reply With Quote
Old 31-07-2006, 17:45   #4 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
It's even worse when you resize the browser window.

Remove all the "height: 100%;" stuff. Not needed. Apply the background-image to body instead of #page.

Center your page the easy way:

Code:
body { text-align: center; } #page { width: XXXpx; margin: 0 auto; text-align: left; }

Voila!

I'd do away with absolute positioning. It's all fecked up in IE.
  Reply With Quote
Old 31-07-2006, 17:49   #5 (permalink)
b v
Senior Member
 
b v's Avatar
 
Join Date: May 2006
Posts: 462
pgo you rock. so was #page not stretching properly? I wonder why.
  Reply With Quote
Old 31-07-2006, 17:55   #6 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Dunno. I've tried the same thing - using height: 100%; all over the place. It doesn't seem to do anything...so I never use that property - only fixed heights. height: 50px; etc.

I think it probably has to do with the fact that "height: 100%;" is relative - that is, 100% of parent height. And height is by default fluid (as is width), so if you just keep declaring "height: 100%;" it doesn't really have anything to compare to.

Something like that.
  Reply With Quote
Old 02-08-2006, 12:52   #7 (permalink)
b v
Senior Member
 
b v's Avatar
 
Join Date: May 2006
Posts: 462
nvm

Last edited by b v : 02-08-2006 at 21:27.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8