|
-
Apr 6th, 2006, 09:36 AM
#1
Thread Starter
Hyperactive Member
CSS Height
I have a layout that has 2 columns.
-----------------------------------
| 111111 | 222222222222222222 |
| 111111 | 222222222222222222 |
| 111111 | 222222222222222222 |
| 111111 | 222222222222222222 |
-----------------------------------
Section 2 on some sections of the site goes on for several pages, section 1 has only a navigation menu in it. Is there a way to make the size of 1 the same as 2. I would like to make the height of 1 the same size as 2 dynamically. How can this be done?
-
Apr 7th, 2006, 08:13 AM
#2
Re: CSS Height
I am always running into this issue, AFAIK you can't, but usually if you think about it a bit you find you don't need to anyway.
What is the effect that requires they be the same height? Certain to be an alternative method.
-
Apr 7th, 2006, 09:47 AM
#3
Thread Starter
Hyperactive Member
Re: CSS Height
I have a scroller with quick links(anchors) on it so that finding info on a page will be easier, but it seems to hide once I get past the navigation menu area in section 1. it just seems weird to me, and I though that if I can set the height of section 1 to the height of section 2 that it would resolve the problem.
-
Apr 7th, 2006, 09:51 AM
#4
Re: CSS Height
Can you post a screenshot of how it looks at the moment?
-
Apr 12th, 2006, 10:17 AM
#5
Re: CSS Height
Most often the easiest method is to wrap both inside another element and set a background to that element. As the parent element is sized according to the inner elements, it'll always fill all space available.
As offtopic: this behaviour in CSS is something I personally consider a flaw. It should be possible to make elements fill all available vertical space. But it isn't possible, atleast not at the moment, thus we just have to work around the problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|