re-size background image

Two sources were used for this tip.

body {  
  overflow-y: hidden ! important;
  overflow-x: hidden ! important;
  background-color: #f8f8f8;
  background-image: url('index.png');
  /*background-size: cover;*/
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;

For a full background image, the following code may be used.
This code fragment is found at

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;
Show Comments