A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Trouble with Responsive Design: CSS Media Queries Not Working

  1. #1
    Junior Member
    Join Date
    Nov 2024
    Posts
    3

    Trouble with Responsive Design: CSS Media Queries Not Working

    Hi everyone,

    I?m working on a responsive website, but I?m running into issues with my CSS media queries. No matter what I try, the styles inside the media queries aren?t being applied. Here's a snippet of my code:

    Code:
    body {  
      font-family: Arial, sans-serif;  
      background-color: white;  
    }  
    
    @media (max-width: 768px) {  
      body {  
        background-color: lightgray;  
      }  
    }
    When I resize the browser, the background color doesn?t change as expected. I've checked that my CSS file is linked correctly, and I?ve tried clearing my browser cache. Am I missing something obvious?

    I?m testing this in Chrome, but I?ve also tried it in Firefox with the same result.

    Thanks in advance for your help!

  2. #2
    Senior Member
    Join Date
    Feb 2005
    Posts
    1,836
    Looks like you added too many letters to the background-color. What exactly's the deal with that surprise hyperlink?
    .

  3. #3
    Administrator Steve R Jones's Avatar
    Join Date
    Nov 2011
    Location
    Largo, FL.
    Posts
    140
    Quote Originally Posted by swak View Post
    Looks like you added too many letters to the background-color. What exactly's the deal with that surprise hyperlink?
    That's called SPAM.... I really should just ban him since he's been caught twice...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center