Tag Archives: CSS Tips

Applying two background images

To apply two images to  HTML page background you can use the following code: html { height: 100%; background:url(bg.gif); } body { margin:0; background:url(bg_content.gif) repeat-y center top; min-height:100% !important; height: 100%; } min-height:100% – allows the background image to stretch … Continue reading

Controlling element overflow

The following statement is used to control Horizontal or Vertical overflow of any HTML element: * { overflow-x:hidden; overflow-y:auto; }