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

CSS - Background-size: cover

0 votes
added Feb 8 in CSS by LC Marshal Captain (23,720 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. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.