Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css background image size to fit screen

html {
    height: 100%
}
body {
    background-image:url("../images/myImage.jpg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
Comment

css full cover background image

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

html background image fit to screen

body {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
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

how to make background image fit to screen

body{
	background: url(""); /* enter the image path */
    background-repeat: no-repeat;
	background-size: 100%;
}
Comment

PREVIOUS NEXT
Code Example
Css :: css vertical align 
Css :: rgb white 
Css :: have an item span multiple columns css grid 
Css :: color transition time css 
Css :: how to show ... after some long chars js html h1 
Css :: box shadow transperent 
Css :: align button to bottom of div 
Css :: mat radio button color 
Css :: text glow 
Css :: media query min max 
Css :: css center modal vertically 
Css :: how to position something on the same line css 
Css :: onclick change visibility 
Css :: line break inside content css 
Css :: scss react 
Css :: less calc with variable 
Css :: make div the size of the text inside 
Css :: how to round the corners of a div outline in css 
Css :: css clearfix 
Css :: import css in another css file 
Css :: css width: 50% 
Css :: margin for text in html 
Css :: text overflow 
Css :: circle button css 
Css :: hide element using css 
Css :: fixed header and footer css 
Css :: css text spacing 
Css :: what does clearfix for floats do in css 
Css :: place image on top right inside flex css 
Css :: css margin top 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =