Skip navigation
Currently Being Moderated

Media Queries – Confused

Apr 10, 2013 8:35 AM

Tags: #css3 #media_queries

Site-wide media query file or Default Presets?

– I created a phone.css and a tablet.css – these modified css files work perfect.

 

Question

1. How do I make the media query work for the entire site?  It’s only working for the index.html page.

 
Replies
  • Currently Being Moderated
    Apr 10, 2013 9:49 AM   in reply to WillzShireDDC

    Are you working from a Defined Site?

     

    If you do a Save As of the index.html page, and you are working from a Defined Site, DW will automatically update your links to the .css file in the <head> section of the new page no matter where in your site you save it.

     

    If you are not working from a Defined Site, you'll need to set that up first...

     

    http://tv.adobe.com/watch/learn-dreamweaver-cs5/gs01-defining-a-new-si te/

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 10, 2013 11:56 AM   in reply to Jon Fritz II

    This is an existing 16 page site already on a hosting server.

    Now I trying to use the DW Media Queries to apply my  phone.css and tablet.css. to ALL the pages.

    1. what do I use for "SPECIFY" in the "Site-Wide media query file:" it seems to want a .css file.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 10, 2013 12:26 PM   in reply to WillzShire

    is there a reference present to these new media CSS files in other 15 pages ?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 10, 2013 12:31 PM   in reply to Reach Puneet

    You need to add the .css links to the other pages it sounds like. Something like this should be in the <head> of the page that works...

     

    <link rel="stylesheet" type="text/css" href="link/stylesheet.css" />

     

    That needs to be in the <head> section of each page, pointing to your actual .css files.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 10, 2013 5:15 PM   in reply to WillzShire

    In code view, simply copy & paste the media query links from your index page into the <head> tags of your other site pages. 

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 10, 2013 5:45 PM   in reply to Nancy O.

    Thanks Nancy O,

    That's what I did and all is fine now.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points