I’ve built a few XHTML and CSS sites and dabbled with a bit of PHP and Javascript in the past.
Recently I’ve been looking at HTML5 and think it would be a good time to study responsive layouts too.
What’s the best current way to tackle responsive layouts?
I’ve got some info that uses width and pixel count, but with all the new mobile devices sporting very high displays I think this info is way out of date.
What about selecting the correcting css file for the device?
I’ve found instructions for a css media query
<link rel="stylesheet" type="text/css" media="only screen and (min-width:50px) and (max-width:500px)" href="layoutSmall.css" />
<link rel="stylesheet" type="text/css" media="only screen and (min-width:501px) and (max-width:800px)" href="layoutMedium.css" />
But I’m wondering if this is best practice because of the high resolution mobile displays, or am I getting mixed up with pixels and the resolution of the device?
I design my layouts at an average resolution with an idea of how they’ll look when shrunk and enlarged. Then I’ll code it completely elastic/fluid with the heights/sizes/spacing of the smallest version. Then I add media queries and go from small to large resolutions.
Just the process that makes the most sense to me and has produced the best results from personal experience.