I currently have an image repeating on y, but I want it to start 20 px down from where the div starts....
how do I do that?
I currently have an image repeating on y, but I want it to start 20 px down from where the div starts....
how do I do that?
You just need the background-position property to be set:
background-position: 0px 20px;
background-repeat: repeat-y;
You are talking of the background of a div??
<div style ="margin-top :20px;
background-repeat: repeat-y;
background:url(yourBackgroundUrl)">
.yourClass{
background: url(images/yourImage.png) repeat-y;
background-position: 0px 20px;
}
I prefer the shorthand method:
.yourClass {
background: url(../images/yourImage.png) repeat-y 0 20px;
}