0

If you open my page at http://goo.gl/68s0t (Please don't replace the link here as I don't want google to link this page to my site.) in a non-maximized window and maximize it after it loaded, you see the gradient start over again in the lower part. In opera it is one gradient but in other browsers it repeats vertically.

  1. How can I make it not repeat, ie make the gradient adapt to current browser height?

  2. Sometimes, I see blue squares in the lower right and left corner, what causes them?

1 Answers1

0

To answer (2), the blue squares are caused by the background being applied to both the body and the html elements. Since the body is given a small margin (from the browser, by default), it extends downwards a few pixels beyond the html. They both have the same height, the body is just offset by 8px vertically.

The margin on the left and right causes these small boxes.

To fix this, remove the background from the html, only apply it to the body, and change the margin to padding, if you want the space there.

Hans
  • 948
  • 7
  • 16