CSS Sprite vertical repeat problem
Posted
by ShiVik
on Stack Overflow
See other posts from Stack Overflow
or by ShiVik
Published on 2010-06-03T21:49:25Z
Indexed on
2010/06/03
21:54 UTC
Read the original article
Hit count: 475
css
|css-sprites
Hello all
I am trying to include css sprites in my webapp. The thing is I have arranged my website background vertically in sprite image. Now, one portion of the sprite needs to be repeated vertically.
I was trying the following code...
#page-wrapper {
margin: 0px auto;
background-image: url(../images/background.png);
height: 100%;
width: 1000px;
}
#page-wrapper #content {
background-position: 0px -80px;
background-repeat: repeat-y;
height: 1px;
}
I am confused in the height property of content class. How should I define the height of the section which I want to repeat and the height of the div(#content)?
Regards Vikram
© Stack Overflow or respective owner