Forum Moderators: not2easy

Message Too Old, No Replies

Length of Page

How do I make various lengths

         

emfour

6:33 am on Dec 2, 2008 (gmt 0)

10+ Year Member



Hi guys,

I currently have a left col, and content div for my website that is 2500 pixels in height, because my longest page on the site needs them to be that long. However for the other pages on my site that length is way too long. How do I use CSS to make it so that the height of my pages on my site are different or adjust for each page.

Thank you

swa66

9:37 am on Dec 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, a lot depends on how you made the columns. Most examples I've see over the years use floats, so let's assume that's what you have. (you might actually have not floats but position:absolute as well) Tell us a bit more about how it's done.

If you take off the height in the CSS the height of the columns should encompass the content of the column. But it will stop the columns to be equal in height. I'm guessing the fixed length was added to make them equal in height.