Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css background image fit

body {
    background-image:    url(images/background.svg);
    background-size:     cover;                      /* <------ */
    background-repeat:   no-repeat;
    background-position: center center;              /* optional, center the image */
}
Comment

PREVIOUS NEXT
Code Example
Css :: how to remove up and down arrows from input type number 
Css :: make image not draggable css 
Css :: htaccess for angular 
Css :: css var negative 
Css :: center in the middle of the screen html css 
Css :: reset submit input style 
Css :: css filter white to black 
Css :: google icon cdn 
Css :: remove boldness css 
Css :: how to hide the bullet list css 
Css :: not last child css 
Css :: journalctl last 100 lines 
Css :: center div vertically tailwind 
Css :: ion input padding left 
Css :: make border to div 
Css :: @media max-width 
Css :: tailwind remove button outline 
Css :: how to center in absolute position 
Css :: how to align a content at the middle of a div with translate 
Css :: bootstrap col no gaps 
Css :: edge media query 
Css :: css focus outline none 
Css :: remove button shadow css 
Css :: stick menu bar in css 
Css :: css background color 
Css :: css keep image ratio 
Css :: grid center css 
Css :: css variables 
Css :: check if swap is working 
Css :: scss transition 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =