- Difference between
px
,em
,rem
<style>
html, body {
font-size: 10px;
}
div {
font-size: 15px;
}
div a {
font-size: 0.5em;
}
div span {
font-size: 0.5rem;
}
</style>
<body>
<div>
<a>what is my font size?</a>
<span>what is my font size?</span>
</div>
</body>
-
Write a css selector for links without
href
attribute -
How to center a block horizontally and vertically?
-
Responsive vs Adaptive vs Separate Mobile Site. Difference? Pro and cons?
-
On the screen with 320px width resolution, will the image be loaded?
<style>
body {
background: url("https://farm5.staticflickr.com/4273/34312689953_7a4b3487c3_h.jpg");
}
@media screen and (max-width: 480px) {
body {
background: green;
}
}
</style>
<body>
</body>