tags:

views:

46

answers:

4

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?

+1  A: 

You just need the background-position property to be set:

background-position: 0px 20px;
background-repeat: repeat-y;
Justin Niessner
A: 

You are talking of the background of a div??

<div style ="margin-top :20px; 
             background-repeat: repeat-y;
             background:url(yourBackgroundUrl)">
loxxy
A). never *ever* style inline and B). doesn't have to be a DIV
annakata
loxxy
+2  A: 
.yourClass{
    background: url(images/yourImage.png) repeat-y;
    background-position: 0px 20px;
}

http://www.w3schools.com/css/pr_background-position.asp

Dutchie432
this does not work (tested with webkit based browsers) background position has no effect. or teh repeat y goes beyond the start position.
DerNalia
+1  A: 

I prefer the shorthand method:

.yourClass {
    background: url(../images/yourImage.png) repeat-y 0 20px;
}
Jon Harding