HTML and CSS Reference
In-Depth Information
/* for Firefox 3.6 */
-moz-background-size: 100% 100%;
/* for Safari and Chrome */
-webkit-background-size: 100% 100%;
/* for Opera */
-o-background-size: 100% 100%;
/* W3C specs */
background-size: 100% 100%;
}
[...]
<div class="one">
Background with no background sizing
</div>
<div class="two">
Background with background-size set to 100% 50px
</div>
<div class="three">
Background with background-size set to 100% 100%
</div>
Figure 14.3 Example of a background image without background-size set and with
background-size set to specific dimensions.
Search WWH ::




Custom Search