- This topic is empty.
-
AuthorPosts
-
February 19, 2012 at 8:04 pm #36740ArchDesignLabsParticipant
I have read about a dozen articles from sources all of the web and can not seem to find the solution I need. I am basically trying to say that if the browser size is above 1200px refer to largestyle.css and below 1200px refers to smallstyle.css. Does anyone have a smart solution or article?
February 19, 2012 at 8:23 pm #96975joshuanhibbertMember<link rel="stylesheet" href="smallstyle.css" media="(max-width: 1200px)">
<link rel="stylesheet" href="largestyle.css" media="(min-width: 1200px)">February 19, 2012 at 10:07 pm #96981ArchDesignLabsParticipantDo you replace
February 19, 2012 at 10:30 pm #96982joshuanhibbertMemberReplace the default style sheet link with the above.
February 19, 2012 at 10:36 pm #96983ArchDesignLabsParticipantThat part?
February 19, 2012 at 10:59 pm #96984joshuanhibbertMemberYes. Just make sure to get the path to the new style sheets correct.
Also, I have assumed that you are using a HTML5 doctype, and as such, removed the trailing slash, and the type attribute.
February 20, 2012 at 7:25 am #97005visioMemberFirst you make a folder name css in your theme, then in your main style.css just import css files e-g @import url(‘css/basic.css’); as it is import other files.
February 20, 2012 at 3:38 pm #97032ArchDesignLabsParticipant@visio your basically using media queries right? My question would be how does the site know which stylesheet to use when the browser is resized if you are just @importing them into the main stylesheet? Would you still not have to do what @joshuanhibbert is saying?
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)- The forum ‘Back End’ is closed to new topics and replies.