Page 1 of 1

javascript load before css

Posted: Thu Mar 29, 2012 10:46 am
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

Re: javascript load before css

Posted: Thu Mar 29, 2012 11:30 am
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/

Re: javascript load before css

Posted: Thu Mar 29, 2012 10:51 pm
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.