Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

CSS - Background-size: cover

0 votes
5 views
added Feb 8 in CSS by LC Marshal Lieutenant (18,470 points)
edited Apr 4 by LC Marshal
$dkn-cover: 'img.jpg';
.background-size {
    // no-repeat comes first
    background: url($dkn-cover) no-repeat fixed;
    
    // followed by cover
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...