SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Auto min-width?
-
Jul 14, 2006, 13:37 #1
- Join Date
- Feb 2006
- Posts
- 61
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Auto min-width?
Hi,
I've either forgotten how to do this, have been in the dark about it, or it is not possible (I've searched and found nothing), but I was wondering if there is any way to make min-width/min-height attributes automatic, so when a nested object encounters the parent, the parent will stop getting smaller, instead of continuing to shrink, causing the nested to 'leak' out of the parent.
Any help and I will be grateful.
-
Jul 15, 2006, 23:16 #2
- Join Date
- Jan 2004
- Location
- Melbourne, Australia
- Posts
- 7,305
- Mentioned
- 1 Post(s)
- Tagged
- 1 Thread(s)
Just give a min-width to the parent (a figure of the largest 'nested object'). IE6 doesn't support it, but through a bug, will stop the parent from shrinking once it hits a nested object.
Bookmarks