javascript load before css

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

javascript load before css

Post by sumpson »

Hello I am having a problem..

When using a browserwidth above 1359 I have my menuwrapper popped out automaticly by adding a CSS class on the menuwrapper. However when the page loads while having a resolution higher than 1359 you will see the menu first on the left en then popped to the right, it should be on the right when the page loads instead.

You can see the example of the problem over here:

http://alturl.com/nbwaz

does anyone have an idea for this problem?

thanks in advance for any replys
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm
Location: Delft, Netherlands

Re: javascript load before css

Post by mcDavid »

You can use CSS @media queries to make different stylesheets for different screen sizes.
I found some explanation here:
http://mislav.uniqpath.com/2010/04/targeted-css/
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

Re: javascript load before css

Post by sumpson »

thanks for your reply, this could be an option if no other solution is found. the problem with this solution is that when the width of the browser is different than the screensize or when the width of the browser is adjusted no changes appear.
Post Reply

Return to “The Lounge”