You probably need to declare the code below for height:100%
to work for your divs
html, body {margin:0;padding:0;height:100%;}
fiddle: http://jsfiddle.net/5KYC3/
More Related Contents:
- How to display an chage photo option on mouse hover similar to linkedin using Javascript? [closed]
- Input type="text" with select functionality after clicking on Input type="text"
- How to force browser to show image 3 inches wide?
- Syntax Higlighter For Site [closed]
- how i can connect and login in mysql localhost in php by using this html code
- How to create a tag with Javascript?
- Can I use HTML tags in the options for select elements? [duplicate]
- Cache busting via params
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- JS function named `animate` doesn’t work in Chrome, but works in IE
- How do I re-trigger a WebKit CSS animation via JavaScript?
- How to update placeholder color using Javascript?
- Change an image with onclick()
- make html text input field grow as I type?
- Have a div cling to top of screen if scrolled down past it [duplicate]
- how to disable DIV element and everything inside [duplicate]
- How Do I Stop My Web Content From Shifting Left When The Vertical Scrollbar Appears? Roll-Up of Advice 2017 [duplicate]
- Load HTML page dynamically into div with jQuery
- Possible to associate label with checkbox without using “for=id”?
- jQuery position DIV fixed at top on scroll
- How to define the css :hover state in a jQuery selector?
- Why does querySelector only select the first element and how can I fix this?
- Multiple read more / read less sections are not working on a page
- Extracting text from a contentEditable div
- How to create a collapsing tree table in html/css/js?
- Prevent iOS bounce without disabling scroll ability
- How to remove jQuery Mobile styling?
- Setting the height of a DIV dynamically
- Center an Image vertically and horizontally using CSS
- Jquery/Javascript Opacity animation with scroll