marrow
02-22-2004, 09:31 AM
Despite looking at resources for over a week, I am just plain confused as how to get two of my divs:
#content (the black box where the text goes)
#divbg (the purple dotted background behind #content)
...to nest like a table within a table. I want "divbg" to stretch to accomodate the "content" div. Basically, I want the purple dotted div to act as a border for the content div, expanding its length so that the content div doesn't overlap the bottom of "divbg."
This is the original layout, positioned with px instead of % (I decided later to use % so my layout would look pretty much the same in most resolutions):
the layout positioned with px (http://sodskirt.net/links/)
I had to manually set the height of "divbg" so that it would be long enough to border the bottom of the "content" div.
Here's what I've come up with so far and I'm having trouble making it look like
the original layout.
revised layout so far (http://sodskirt.net/divredesign.html)
Help? Or maybe a link to a good tutorial that deals pretty much specifically with my problem?
#content (the black box where the text goes)
#divbg (the purple dotted background behind #content)
...to nest like a table within a table. I want "divbg" to stretch to accomodate the "content" div. Basically, I want the purple dotted div to act as a border for the content div, expanding its length so that the content div doesn't overlap the bottom of "divbg."
This is the original layout, positioned with px instead of % (I decided later to use % so my layout would look pretty much the same in most resolutions):
the layout positioned with px (http://sodskirt.net/links/)
I had to manually set the height of "divbg" so that it would be long enough to border the bottom of the "content" div.
Here's what I've come up with so far and I'm having trouble making it look like
the original layout.
revised layout so far (http://sodskirt.net/divredesign.html)
Help? Or maybe a link to a good tutorial that deals pretty much specifically with my problem?