 |
 |
How to Stretch a Layer with Another Layer
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2004
Location: Berkeley, CA
Status:
Offline
|
|
I am placing absolutely positioned layers within another layer, but because they are absolutely positioned, the layer they are in is not stretching to accomodate them. Is there a way around this? I want to have two columns, and the only way to do that seems to be the use of absolute positioning. If there is another way, please inform me, but I am still curious about the original question. Thanks for any help  .
Edit: Please read this for the most recent updates on my situation.
(Last edited by tavilach; Jul 20, 2005 at 02:02 PM.
)
|
|
"Give me a lever long enough and a fulcrum on which to place it, and I shall move the world." -Archimedes
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status:
Offline
|
|
original question: the answer is no.
two column layouts are a very well covered topic.
The gist of it is to float (or absolutely position) one column, and then add margin or padding to the other to leave room for it.
(Last edited by registered_user; Jul 20, 2005 at 03:07 PM.
(Reason:bbcode))
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
Have you tried putting overflow: auto on the "layer" which contains the two columns? The behavior of this seems to be somewhat inconsistent -at least in Mozilla- but usually it causes the div to stretch and accommodate floats. It might work for this too, though I'm not certain.
If you do make this work, by the way, could you please post code? I'm working on a similar problem that I'm trying to solve by other means, but if this works then I'll take it.
|
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status:
Offline
|
|
overflow: auto; does not work on absolutely positioned elements, just floats. And in IE just floats that have layout. That big dumb browser.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 1999
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
Originally Posted by ppmax
That only works in IE/Windows, though. It's made to not interfere with other browsers. It's the best out there for what it does -fix IE problems- but it doesn't do what the poster is looking for.
That said, JavaScript is one possible solution. You could use it to get the calculated heights of all the "inside" layers, find the tallest, and stretch the "outside" layer to match.
|
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 1999
Status:
Offline
|
|
>>That only works in IE/Windows
I know.
>> but it doesn't do what the poster is looking for.
Whoops: I misread the OP and someone else's post.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|