If you see this in an iFrame, check out
<link rel="stylesheet" type="text/css" href="enhanced.css" media="only all and (min-width: 600px)" />
Inside a css stylesheet:@media only screen and (max-width: 30em)
Proposal in 2010 article: img{max-width: 100%}
Problems: Mobile might receive much larger file than necessary; browser needs reflow/repaint
Fixed | px |
Elastic | em |
Fluid | % |
This is only possible if the container max-width is set in ems - no media queries involved
The :nth-child css rule can turn an 8 column row into a 4 column row
.span_1_of_8:nth-child(4n+1) {
clear: both; margin-left: 0;
}