Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-12-16 20:48:59
- seikenn
- Member
- From: Baltimore, Maryland USA
- Registered: 2007-12-16
- Posts: 10
CSS problems
This is my first post to the forums, so hello to everyone. I spent a lot of time looking for the CMS to spend time on and TXP is by far the best I found. That said I did check to see if I could find this question elsewhere.
All of my sections (www.mysite.com/section) are styled fine. I edit the CSS it takes immediate effect. However, when I move to a Url like www.mysite.com/section/article_name the paged is unstyled but it does have the article and all other important page elements. This is blowing my mind because it seems to be using the same form as all the other pages. I went and bought the Textpattern Solutions book but could not find the answer. Please help.
Offline
#2 2007-12-16 21:06:12
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: CSS problems
What does the link to the stylesheet look like? Did you use txp:css?
Offline
Re: CSS problems
are you referring to images not showing up from your css? you may have to use absolute or proper relative paths for them.
Offline
#4 2007-12-16 21:14:23
- seikenn
- Member
- From: Baltimore, Maryland USA
- Registered: 2007-12-16
- Posts: 10
Re: CSS problems
My link looks like this:
<link rel=“stylesheet” href=“css/master.css” type=“text/css” media=“screen” title=“default” charset=“utf-8” />
I did not use the txp tag instead I place a folder on the root and linked to the file there.
To answer the second question. All styles are not displaying not just images. The page is styled to the browser default.
By the way thanks for the quick response.
Offline
Re: CSS problems
<link rel="stylesheet" href="css/master.css" type="text/css" media="screen" title="default" charset="utf-8" />
if you’re not using the txp:css tag then you’re going to have to use absolute(or proper relative) url for your css file then. so href="css/master.css"
is not going to work since when you’re at an article, the directory/url changes (doesn’t really change since its just a mod_rewrite but whatever) and master.css cannot be found.
you’d have to specify it like href="/css/master.css"
(if the css dir is in your root directory)
Last edited by iblastoff (2007-12-16 21:19:56)
Offline
Pages: 1