How to do a full bleed background image that scales with resolution in css/javascript? [duplicate]

Tags: javascript,jquery,html,css,html5

Problem :

Possible Duplicate:
Full Screen Background Image in Firefox

See this:

How do you do something like this that will look right in any monitor resolution? In the Ingress site, it looks like even the size of the content (the iphone image for example) scales as you shrink or grow the resolution/window size.

Solution :

It's easy, but it's CSS3 and not supported on old browsers. Use background-size:cover or background-size:contain in your CSS.

CSS-tricks has an article with other, more robust solutions.

    CSS Howto..

    How to create inheritance with LESS?

    how to save the datas which are get from a newsletter? [closed]

    Color not showing up in Safari but everything is working in MSIE, FF and Chrome browsers

    How to add missing browser-specific css declaration properties and prefixes to epub [closed]

    How to hide DIV when scroll reach at Bottom through CSS?

    How do I give a JavaFX TextField a Swing-style lowered bevel border?

    How to set Twitter Bootstrap class=error based on AngularJS input class=ng-invalid?

    How to get all child elements using an xpath selector?

    How to apply different width stored in PHP to 3 identical DIVs (using same CSS)

    How do I uncollapse a margin?

    How to set CSS of one element depending on another element having a specific class?

    How do i automatically resize Fonts and Images (complete Website) on window-resize?

    How to mail HTML/CSS output as attachment?

    How to align buttons below and right-aligned to a HTML list?

    TYPO3: how to add an element to the RTE, which allows the user to use a defined CSS class

    How should I use `position` and other properties correctly to position my web page?

    How to use media queries in css

    How to override Inline Style CSS?

    How To Highlight Show Active Tab In A Navbar-Fixed-Top

    How to minimize the no of css

    How can i get target with a hover an element under an element?

    How do I avoid multiple jquery dropdown boxes interfering with eachother

    How can I change the color of a DecoratorPanel in GWT?

    How do I change the last textual node child in JavaScript

    How do change CSS Class from Code Behind?

    How can I center the nav menu items using bootstrap 3?

    How to create transparent text on non-transparent background

    How to apply IE11 specific css [closed]

    How to center two columns using CSS without using a fixed width container?

    How to add two CSS Class to control in the code behind?