anw
11-04-2007, 04:17 PM
Just when I seem to understand this layout with divs it seems again to elude me. Could someone please answer the following questions definitively:
1. When does a div "shrink wrap" its contents, and when does it expand to fill its container? I thought a div always expanded to fill its container, but I'm not now so sure, since I think I've seen it do otherwise.
2. How can you force the elements in a div to stay on the same horizontal line, stretching the parent if necessary, and expanding the window or adding a scroll bar if necessary?
I know these are basic questions, but I'm doing a (large) personal site and have still missed something here.
TIA,
anw
1. When does a div "shrink wrap" its contents, and when does it expand to fill its container? I thought a div always expanded to fill its container, but I'm not now so sure, since I think I've seen it do otherwise.
2. How can you force the elements in a div to stay on the same horizontal line, stretching the parent if necessary, and expanding the window or adding a scroll bar if necessary?
I know these are basic questions, but I'm doing a (large) personal site and have still missed something here.
TIA,
anw