|
|
Rank: Newbie
Joined: 4/17/2008 Posts: 11 Location: Kalmar, Sweden
|
I'm making the final touches and CSS on my calendar package but i'm having trouble showing my images. This is the CSS I'm using. Code:.musicalender { background: url(Kalender/cal_bg.jpg); }
I get result when i change the background but my image wont show. I uploaded the image directly to "root/css/Kalender" and created the "Kalender"-folder without the help of umbraco.
|
|
 Rank: Fanatic
Joined: 9/27/2007 Posts: 403 Location: Belgium
|
Try changing: Code:.musicalender { background: url(Kalender/cal_bg.jpg); } into: Code:.musicalender { background: url(/css/Kalender/cal_bg.jpg); } if you copied the cal_bg.jpg image into the /css/Kalender dir. Regards, /Dirk
level 1 certified - umbraco blog at netaddicts.be
|
|
 Rank: Aficionado
Joined: 9/17/2007 Posts: 198 Location: London, UK.
|
don't put a space between : and url, so background:url(/css/Kalender/cal_bg.jpg);
Some browsers throw up if you have that space.
Also note that css images are relative to the css file itself.
Richard
2 * 3 * 3 * 37 : The prime factorisation of The Beast.
|
|
Rank: Newbie
Joined: 4/17/2008 Posts: 11 Location: Kalmar, Sweden
|
I think my umbraco developing server was corrupt. I get xslt errors and stuff and when i tried my package on another umbraco installation all the images worked without problem. Thanks for the replies.
|
|
|
Guest |