SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Jun 2009
    Posts
    789
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    problems with media queries...

    http://mayacove.com/dev/rd/css.gif

    why is rule in line 49 being overwritten with code on line 18???

    this is driving me nuts..... :-(

    thank you......

  2. #2
    SitePoint Addict WebMachine's Avatar
    Join Date
    Jun 2007
    Location
    Ontario, Canada
    Posts
    392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The experts can probably do a better job of explaining this, but the rule in line 49 is for #menu (targeting everything with an ID of menu) and the rule in line 18 is for a#menu (targeting only anchor tags with an ID of menu) which, I believe, is more specific and so takes precedence.

  3. #3
    SitePoint Guru
    Join Date
    Jun 2009
    Posts
    789
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    yes, that's what it was... the specificity thing!!!
    oh brother....

    thank you....


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
  •