This project is read-only.

background image won't be displayed

Topics: ASP.NET 2.0, Themes
Oct 20, 2007 at 8:14 PM
I edited standart theme / default.css / class like below;, .mceContentBody
border: 1px solid silver;
padding: 3px 10px;
margin-bottom: 20px;
line-height: 17px;
background-image: url(themes/Standard/images/2.jpg);
background-repeat: repeat-x;

However it makes the box transparent. The image won't be displayed on background.

Does anybody know the reason? or any solution?

Thanks in advance,
Engin Uysal
Oct 20, 2007 at 9:01 PM
You need to use a path relative to the .css file and not the root.

try background-image: url(images/2.jpg); or background-image: url(../../themes/Standard/images/2.jpg);
Oct 20, 2007 at 9:15 PM
second way worked perfect. Thanks a lot.