SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Auto min-width?

  1. #1
    SitePoint Enthusiast
    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.

  2. #2
    Non-Member Egor's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •