What are best practices for the default stylesheet when using CSS @media queries?

It depends on whether you go with de 'mobile first' approach or 'desktop first.

It depends on whether you go with de 'mobile first' approach or 'desktop first'. The desktop first should not cause any trouble with desktop browsers not supporting @media, because they will just ignore the mobile stylesheet rules, like they should. The only problem is mobile browsers that don't support media queries.

They will render the page like seen on desktop. But most smartphones support media queries, except pre-win7 phones. The question is if you want to support those phones.

You stylesheet should look something like this. Body { width: 960px; margin: 0 auto; } @media only screen and (max-width: 500px) { /* override desktop rules to accommodate small screens*/ body{ width: auto; margin: 0; } The other approach is mobile first. You create a base stylesheet for mobile, and then use mediaqueries to spice thinks up for desktop users.

You can put the desktop rules in a separate file, and use media queries and conditional comments to load it in modern desktop browsers and IE. But here the problem is IE mobile also supports conditional comments, so no pre-win7 phone support. Your html should look something like: Making your design fluid will help a lot.

The aim is that no matter what screen size, your site will always look good. Just resize your window to try it out. Fluid designs can't make your sidebar move to the bottom if the screen is to narrow.

For this you need mediaqueries. Good luck.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions