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%
}
http://jsfiddle.net/8XUjP/
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 add a background image on top of a previous background image?
- How to completely remove borders from HTML table
- Can I use an image from my local file system as background in HTML? [duplicate]
- Why does this CSS margin-top style not work?
- Flexbox code working on all browsers except Safari. Why?
- CSS when inline-block elements line-break, parent wrapper does not fit new width
- How to vertically align text inside a flexbox?
- Last margin / padding collapsing in flexbox / grid layout
- Styling part of the OPTION text
- How do I disable the resizable property of a textarea?
- set content height 100% jquery mobile
- How do you get centered content using Twitter Bootstrap?
- How can you customize the numbers in an ordered list?
- Border length smaller than div width?
- Make div (height) occupy parent remaining height
- flex container min-height ignored in IE
- Using custom HTML Tags
- Outline radius?
- Imitating a blink tag with CSS3 animations
- How do I make an editable DIV look like a text field?
- 100% Min Height CSS layout
- Bootstrap 4 row fill remaining height
- How is Github Changing Pages and the URL so smoothly without AJAX?
- CSS image resize issue
- Jenkins – HTML Publisher Plugin – No CSS is displayed when report is viewed in Jenkins Server
- HTML: Changing colors of specific words in a string of text
- How to make Bootstrap 4 cards the same height in card-columns?
- HTML + CSS: Ordered List without the Period?
- Why is the parent div height zero when it has floated children
- Get rid of space underneath inline-block image [duplicate]
- Make row stretch across all columns in CSS Grid
- 5 images symmetrically seperated with diagonal lines
- Stretching tag to fill entire
- How does the z-index property really work?
- CSS grid wrapping
- How to align flexbox columns left and right?
- Why does the ‘title’ attribute cause browsers to ignore my styles?
- Is it possible to set a background in a bootstrap column that oversizes the div? [duplicate]
- Apply css to AREA MAP
- Jenkins Content Security Policy
- What is haslayout?
- How can I make a div with irregular shapes with css3 and html5?
- Multiple submit buttons on HTML form – designate one button as default [duplicate]