Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-02 16:57:28

Victor Lazarro
Member
From: Berlin
Registered: 2006-06-14
Posts: 127
Website

background image in css??

Hi, there i try to use a background image, but i can’t see it !

padding-top:1em;
padding-bottom:1em;
text-align: center;
border-top:1px solid #324031;
border-bottom:1px solid #324031;
background: #cc9966 url(“/images/tools/banner_790x124.jpeg”);

<p> do i have to change any things??

i go crazy with this …
the link to my site is here

Thanks


good magic is better than sex, but harder to find …
http://www.lazarro.de

Offline

#2 2006-08-02 17:14:50

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: background image in css??

try this for your background shortcut

<code>
background: #cc9966 url(/images/tools/banner_790×124.jpeg) no-repeat 0 0;
</code>

Offline

#3 2006-08-02 17:15:57

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: background image in css??

Oh….and make sure you path from the CSS file to the image is correct.

Offline

#4 2006-08-02 17:41:43

Victor Lazarro
Member
From: Berlin
Registered: 2006-06-14
Posts: 127
Website

Re: background image in css??

hi, thanks,

but nothing changed, i don’t now ??

the path is ok …


good magic is better than sex, but harder to find …
http://www.lazarro.de

Offline

#5 2006-08-02 18:33:30

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: background image in css??

Ok…..here’s what works, I used dev toolbar and edited the css on your site so I know this works:

<code>
background: #cc9966 url(http://www.cardstunts.eu/images/tools/banner_790x140.jpg) no-repeat 0 0;
</code>

It was the path. Among other things, you had it specifying .jpeg when the file was called .jpg

Offline

#6 2006-08-02 18:47:48

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,393
Website GitHub Mastodon

Re: background image in css??

The used path is not ok. This path is ok. As a magician, it shouldn’t impose a problem to vaporize one “e”, should it?

Last edited by wet (2006-08-02 18:50:19)

Offline

#7 2006-08-02 22:47:46

Victor Lazarro
Member
From: Berlin
Registered: 2006-06-14
Posts: 127
Website

Re: background image in css??

Thanks a lot.

I maked it disappear … :)
but i tell you, for me txp is magic,
it let appear articles on positions i like, random, in order, what ever, thats magic too.

and iam shure, next question is not so far …


good magic is better than sex, but harder to find …
http://www.lazarro.de

Offline

Board footer

Powered by FluxBB