SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Sep 2009
    Posts
    316
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Does this work in IE6?

    HTML Code:
    @media handheld, only screen and (
      max-width: 1280px
      )
    I understand the max-width will not work in IE6 however so I'm trying this:

    HTML Code:
    @media handheld, only screen and (
      max-width: 1280px
      width:expression( 
            document.body.clientWidth > (1200) * 
            parseInt(document.body.currentStyle.fontSize)?
            "1100px": 
            "auto" );
      )
    Should this work in IE6? What i'm trying to decipher is whether i do not fully understand the bugs within IE6 or if i'm doing this approach incorrectly.

    If anyone knows of any real solutions to what i'm trying to achieve here, let me know. I basically want the width to change as the browser size changes

  2. #2
    Non-Member
    Join Date
    Jun 2010
    Location
    4727′35″N 2618′0″E
    Posts
    1,789
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Media queries aren't supported in IE8-.

    IE8- understands basic media types such as: media="screen" only.

    Since JS expressions in CSS are only understood by IE, you can safely put it in your CSS and the other browsers will ignore it, but outside any media queries.


Tags for this Thread

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
  •