Forums

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

Home Forums CSS Css Media query problem

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36872
    Beavster
    Participant

    Hey ppl!

    Im working on a site and Im using Paul Irish’s boilerplate for a plain HTML5 site. Im thinking responsive so Im using media querys for targeting mobile phones. The problem is that when Im in mobile resolution (320×480) some of my divs are getting the stylerules from the main css rules(960grid).

    The CSS-rules are in the same CSS-file for both resolutions and Im targeting them with a mediaquery. Do anyone know why this problem is there?

    #97612
    Beavster
    Participant

    Im working local so no link.. sorry. The media query rule for mobile is running after the normal rule.

    like this:

    — normal CSS —

    —media query {

    —mobile CSS—

    }

    I tried to add the !important but it didnt help me.

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