Question

I want to use media queries to alter my design for phones and other mobile devices.

It seems I can either have the following within my css file:

@media handheld and (max-width: 480px),  
screen and (max-device-width: 480px) {
}

Or, I can have something similar as part of the link to the CSS file, in my page html. Is their a difference between these two methods or is the result the same? Thanks

Was it helpful?

Solution

They are the same. Check the "Meet the media query" section of this link for even more choices on how to introduce them: http://www.alistapart.com/articles/responsive-web-design/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top