You need to set the height of html
to 100%
body {
background-image:url("../images/myImage.jpg");
background-repeat: no-repeat;
background-size: 100% 100%;
}
html {
height: 100%
}
More Related Contents:
- When to use IMG vs. CSS background-image?
- Fill SVG path element with a background-image
- Can I set an opacity only to the background image of a div?
- CSS Display an Image Resized and Cropped
- CSS set background-image by data-image attr
- Fit background image to div
- Fullscreen responsive background image in CSS
- How to change SVG color when it is an encoded CSS background image?
- How to add a background image on top of a previous background image?
- How to completely remove borders from HTML table
- How do I stretch a background image to cover the entire HTML element?
- Can I use an image from my local file system as background in HTML? [duplicate]
- My Website is Mirror-flipped on iPhone Devices
- Thick underline behind text
- Favicon not showing up in Google Chrome [duplicate]
- Apply CSS styles to an element depending on its child elements [duplicate]
- Space between nowrap inline blocks [duplicate]
- Difference between Width:100% and width:100vw?
- CSS background image alt attribute
- How do I remove the blue styling of telephone numbers on iPhone/iOS?
- Font Rendering / Line-Height Issue on Mac/PC (outside of element)
- How do I justify a horizontal list?
- Bootstrap right Column on top on mobile view
- How to display a range input slider vertically
- CSS3 border-radius clipping issues
- CSS transform origin issue on svg sub-element
- transition for background-image in firefox?
- CSS Layout 2-Column fixed-fluid [closed]
- Create a Reverse Clip-Path – CSS or SVG
- Link external CSS file only for specific Div [duplicate]