Repeat a background image only horizontally

Submitted by:David Villa

Date added:24 November, 2011

Category:CSS

CSS Code example : how to repeat a background image only horizontally.

Tags: repeat background image

Code Snippet:

<html>
<head>
<style type="text/css">
body
{
background-image:url('background_image.png');
background-repeat:repeat-x;
}
</style>
</head>

<body>
<h1>Hello World!</h1>
</body>
</html>
 
 

Comments