IE8 repeat-y fails
I'm setting a background for a div like that:
background:transparent url(images/con-left-bg.PNG) repeat-y;
however it's filling whole space instead repeating it vertically only...
Is there a way to 开发者_开发百科fix that so it'll work for IE8?
Try separating out your CSS into separate property:value;
pairs, and put quotes around the url.
background-image: url('images/con-left-bg.PNG');
background-repeat: repeat-y;
background-color: transparent;
But be aware that setting the background-color to transparent sometimes gets wonky in IE.
background-repeat: repeat-y;
you forgot that part :P , and another thing. end every statement with a semicolon(;)
精彩评论