More in this section

Forums / Developing with Sitefinity / Using media queries with masterpages

Using media queries with masterpages

2 posts, 0 answered
  1. ian
    ian avatar
    45 posts
    25 Feb 2013
    04 Nov 2013
    Link to this post
    I have been trying to figure this out for a while now but when using a Masterpage for the page templates what is the best way to add in media queries in the file. The css file is in the sfResource links section but i havent been able to add a media query in there correctly. Any help is greatly appreciated.
  2. Jonathan
    Jonathan avatar
    119 posts
    19 Dec 2012
    05 Nov 2013 in reply to ian
    Link to this post
    I would recommend following these Website Template file structure: Here
    Place your Css file in the global folder.  The use you standard media queries:
    /* Note: Design for a width of 480px */
     @media only screen and (min-width: 480px) and (max-width: 767px) {
    /*Code for 480 width*/

    Good luck
2 posts, 0 answered