html { background: url(images/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
<head> <style> #example1{ border: 2px solid black; padding: 100px; background: url(mountain.jpg); background-repeat: no-repeat; background-size: 100% 100%; } </style> </head> <body> <div id="example1"> </div> </body>
-moz-backface-visibility: hidden;