Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other @media css property

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40882
    Mazhar
    Participant

    Hi Guys,

    I have created a responsive website using @media css property, my question is will this property work on window mobile phones?

    http://www.mazharkhan.com/projects/mtf/index.html

    Thanks

    #114837
    JohnMotylJr
    Participant

    @mazhar19 : I dont have a windows phone to test but i just read an article and apparently (article dated 2011) it says pure media queries dont really show well, however, adding something like this would work.

    <link rel="stylesheet" href="/css/global.css" media="all">
    <link rel="stylesheet" href="/css/layout.css" media="all and (min-width: 30em)">
    <!--[if (lt IE 9)&(!IEMobile)]>
    <link rel="stylesheet" href="/css/layout.css" media="all">
    <![endif]-->

    I never like doing this due to extra http requests but here is the article and i will try and do some more reading on this. I never really thought about this until seeing your post.

    Article

    #114864
    Mazhar
    Participant

    @ JohnMotylJr

    Thank you so much :) i really appreciate it.

    #114867
    Mazhar
    Participant

    @ JohnMotylJr

    I have added [media=”all”] to my css links

    can you help me how u put this below line ? bcoz when i put like this its appearing on my webpage as it is.

    [if (lt IE 9)&(!IEMobile)]>

    #114868
    Watson90
    Member

    @mazhar19

    You need to start the statement like you would with a comment, such as;

    #114877
    Mazhar
    Participant

    Thank you Watson :)

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Other’ is closed to new topics and replies.