Answers for "background-size: fill"

CSS
0

background image stretch to fill

background: url('../images/teaser.jpg') no-repeat center #eee;
background-size: cover;
Posted by: Guest on December-31-2021
3

background size in css

Background Size is Responsible for Setting a Background picutre in a given
Contaiener in which you apply that special Background

/* This will make width as static and height as auto */
/* These three are quite same */ 
background-size: 100vw auto;
background-size: 100%;
background-size: cover;


/* for getting full width and height every time */ 
background-size: 100vw 100vh;
Posted by: Guest on September-23-2021

Browse Popular Code Answers by Language