Using media queries with masterpages

Posted by Community Admin on 04-Aug-2018 06:52

Using media queries with masterpages

All Replies

Posted by Community Admin on 04-Nov-2013 00:00

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.

Posted by Community Admin on 05-Nov-2013 00:00

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

This thread is closed