Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Images in CSS

#1 2006-08-28 19:48:02

Lis
Member
Registered: 2006-08-28
Posts: 10

Images in CSS

I’m having some trouble getting the images in my cascading style sheets to display on my textpattern pages. I’m thinking that part of the problem is I’m not sure exactly what the path to them is. I’ve been trying url(images/imagename.jpg), but this hasn’t been working. Can anyone help?

Offline

#2 2006-08-28 19:49:53

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Images in CSS

Try absolute URLs: url(/images/imagename.jpg)

Offline

#3 2006-08-28 19:54:22

Lis
Member
Registered: 2006-08-28
Posts: 10

Re: Images in CSS

That’s still not working for me…

Offline

#4 2006-08-28 20:07:02

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

Re: Images in CSS

Can you show us your site so we can better help?

Offline

#5 2006-08-28 20:16:09

Lis
Member
Registered: 2006-08-28
Posts: 10

Re: Images in CSS

We’re making a blog for the organization I work for, so I’m not sure that we’re ready to send out the URL, since we’re still trying to figure it all out. Speaking of which, can you recommend any resources (besides this forum, textbook, and textpattern.org, all of which I’ve been combing over for days now) for beginning textpattern users. I’m really struggling without a user manual in my hands.

Offline

#6 2006-08-28 20:23:14

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Images in CSS

Have you read this? Especially look at the links at the bottom of the page.

In admin > advanced preferences you can find the image directory. If you did not change anything when installing, it will be images. In that case, url(/images/imagename.jpg) should work. If you installed in a subdirectory, you may have to use url(/subdir/images/imagename.jpg).

Offline

#7 2006-08-29 06:58:09

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: Images in CSS

This might not be it, but it caused me a headache the first time I designed a site in TxP.

TxP changes the imagename into a number, so the correct path could be <code>url(/images/imagenumber.jpg)</code>.


Prrrrrrrr

Offline

  1. Index
  2. » Archives
  3. » Images in CSS

Board footer

Powered by FluxBB