Background Image Repeat By CSS

Submitted by:Jhon Brain

Date added:18 February, 2012

Category:CSS

CSS code example for a background image repeat vertically (y-axis), horizontally (x-axis), in both directions, or in neither direction.

Tags: repeated background image

Code Snippet:

p {  
background-image: url(smallPic.jpg);
background-repeat: repeat; }
h4 {
background-image: url(smallPic.jpg);
background-repeat: repeat-y;}
ol {
background-image: url(smallPic.jpg);
background-repeat: repeat-x;}
ul {
background-image: url(smallPic.jpg);
background-repeat: no-repeat;}
 
 

Comments