Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css center image on background

body {
  background-image: url('w3css.gif');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}
Comment

how to center background image in css

body {
  background-position: center;
}
Comment

PREVIOUS NEXT
Code Example
Css :: no bullets in ul 
Css :: css center div in page 
Css :: media query min and max 
Css :: reset submit input style 
Css :: css get rid of button outline on click 
Css :: how to center placeholdr text 
Css :: css background image size to fit screen 
Css :: otf css3 font-face 
Css :: css rotate 180 degrees 
Css :: css transition cross browser 
Css :: linear gradient instagram 
Css :: html static background 
Css :: css scrollbar vertical only 
Css :: center content 
Css :: create a specific form size and center in css 
Css :: prevent click css 
Css :: Centering a div of unknown height and width 
Css :: animation keep end state 
Css :: check if input is empty css 
Css :: how to get rid of button outline when clicked 
Css :: inline block align center 
Css :: how to make border blur css 
Css :: adding shadow to a div 
Css :: span wrap html 
Css :: how to blur background image in css 
Css :: How to check tailwindcss version 
Css :: input checkbox size css 
Css :: ion-item no padding ionic 4 
Css :: the other div inline-block is in bottom 
Css :: how to make background more darker with css 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =