51. CSS3 Media Queries
/* CSS Mobile first */
h1 { color:#ff0000; }
p { font-size: 14px; }
@media only screen and (min-width: 600px) {
p { font-size: 16px; }
}
@media only screen and (min-width: 768px) { ... }
@media only screen and (min-width: 992px) { ... }
@media only screen and (min-width: 1382px) { ... }
52. CSS3 Media Queries
<link rel="stylesheet" href="style.css"
media="only screen" />
<link rel="stylesheet" href="480.css"
media="only screen and (min-width: 480px)" />
<link rel="stylesheet" href="600.css"
media="only screen and (min-width: 600px)" />
<link rel="stylesheet" href="768.css"
media="only screen and (min-width: 768px)" />
72. HTML/CSS + testiranje
— WebKit ≠ WebKit
— Testiranje na uređaju što je prije moguće
— Koristite alate poput Adobe Edge Inspecta za osvježavanje
prikaza stranice na uređajima za testiranje