Search
 
SCRIPT & CODE EXAMPLE
 

CSS

CSS make image fill whole background

html { 
  background: url(images/bg.jpg) no-repeat 
    center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
Comment

how to cover full image in css

body {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
Comment

css full cover background image

body { 
  background: url(path/to/bg-image.jpg) no-repeat center center fixed;
  background-size: cover;
}
Comment

make background image full width

html {
    height: 100%;
}
body {
    color: #999;
    background: url('../images/background/main_bg.jpg') no-repeat center center fixed;
    font-family: 'Roboto', sans-serif;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
Comment

PREVIOUS NEXT
Code Example
Css :: how to fix stylelint errors 
Css :: center nav bar css 
Css :: css select every 3rd element 
Css :: how to link css to html in visual studio code 
Css :: css animation animated element goes back to previous state 
Css :: how to right align a block element in css 
Css :: css opacity background color 
Css :: css click through an element 
Css :: how to make a div in top left in css 
Css :: css change color 
Css :: text align left in span 
Css :: css remove margin around page 
Css :: gradient over image css 
Css :: change background input css 
Css :: clamp margin 
Css :: background color transparent 
Css :: Responsive font size with clamp 
Css :: text outline css 
Css :: unclickable button 
Css :: css list line spacing 
Css :: css system default font 
Css :: css flip text 
Css :: background color for whole page css 
Css :: animation reverse 
Css :: before content from attribute 
Css :: html watermark background 
Css :: css clip text 
Css :: how to set the scroll in bootstrap4 table body 
Css :: css border color 
Css :: input outline focus 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =