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 do I evenly space these links within my navbar div?

    How to reduce the wiDth of dropdown-menu?

    css hover element to show child, how can I keep the hover css on the parent when I mouseover the child?

    CSS:How to properly remove border using CSS when border-radius is used?

    How to put text over img on hover - width and height are variable

    How do I make my django app load content as I scroll?

    How to prevent in-line list from wrapping

    how to blur all list-items text except for (this) a:hover

    How to enlarge HTML text while keeping its center anchored at a point?

    how to make background 100% on a top menu

    How to install CSS templates with Flask?

    How to get H1 content the same height in Firefox and in IE8?

    How to place circle and text in one line?

    How do I make custom scrollbars with jScrollPane to be always visible?

    How to make CSS drop down menu appear/change on click

    How do you mimic multi row horizontal scroll table behavior with CSS and Divs?

    How to adapt website to user's Screen Resolution?

    How to disable mask on selected image in the f/ckeditor in webkit, opera browsers?

    Linkedin Follow Button not showing properly in Firefox

    CSS: Image is stretched to square, how to crop it?

    How to stack multiple divs on top of each other and each have a height of 100%

    How to use base css file using twig

    Why IE10 shows something totally different

    How to Draw Kundli Design (diamonds and triangles in square) using HTML and CSS?

    How can i overlay an 10x10px image on top of another image?

    How can I “hack” the Thunderbird Lightning extension to fully color categories

    How can I bold specific HTML rows and columns with CSS or HTML?

    CSS select + select How to get first select

    How do I apply the following CSS to only the Parent nodes of a Kendo Tree View?

    how to open a menu with a button?in html