Something I found in the css?

Discussion in 'Web Design and Development' started by andyjamesnelson, Oct 6, 2008.

  1. andyjamesnelson macrumors 6502

    Joined:
    Aug 24, 2003
    Location:
    Jacob's house
    #1
    Hey I downloaded this:

    http://css-tricks.com/examples/PerfectFluidWidthLayout/

    And found this is the css:


    #page-wrap {
    background: white;
    min-width: 780px;
    max-width: 1260px;
    margin:0 auto;
    width:expression(document.body.clientWidth < 782? "780px" : document.body.clientWidth > 1262? "1260px" : "auto");
    }

    What on earth does that width statement mean? I've never seen anything like that in css...

    I posted on their forum but no luck as yet.. thanks, andy
     
  2. Eric5h5 macrumors 68020

    Joined:
    Dec 9, 2004
    #2
    It executes Javascript. Basically an IE hack...check this for why it's not that great of an idea.

    --Eric
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    I'll reiterate the point of "don't use it." I'll let the link posted by Eric5h5 to explain why.
     
  4. andyjamesnelson thread starter macrumors 6502

    Joined:
    Aug 24, 2003
    Location:
    Jacob's house
    #4
    ok cool thanks for the advice and for the links. andy
     

Share This Page