Thursday 19 July 2012

How to repeat a background image only horizontally in css


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

<body>
<h1>Hello viewer!</h1>
</body>

</html>

0 Responses to “How to repeat a background image only horizontally in css”

Post a Comment