Results 1 to 2 of 2

Thread: min-width for IE6?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Posts
    97

    min-width for IE6?

    Does anyone know how to get the min-width to work on IE 6?

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: min-width for IE6?

    I found two solutions on my first Google search.

    Code:
    <!--[if lte IE 6]>
    <style type="text/css" media="screen">
        div#mainContainer {
            width:expression(((document.compatMode && document.compatMode=='CSS1Compat') ? document.documentElement.clientWidth : document.body.clientWidth) < 1000 ? "1000px" : "auto");
            }
    </style>
    <![endif]-->
    Code:
    #div {
    min-width:100px;
    <!--[if lte IE 6]>
    width:100px;
    <![endif]-->
    }
    Naturally none of these items will replicate the min-width property as IE6 doesn't support it but it's about as good as you'll get.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

Posting Permissions

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



Click Here to Expand Forum to Full Width