images and css Options
Johan
Posted: Tuesday, May 27, 2008 12:05:23 PM
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.
Dirk
Posted: Tuesday, May 27, 2008 12:37:54 PM

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
VirtualRichard
Posted: Tuesday, May 27, 2008 3:23:12 PM

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.
Johan
Posted: Monday, June 02, 2008 1:46:28 AM
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.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.