Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Nested CSS files
I used to (before TXP) build my css files with a master file that contained @import statements, and several topically named css files. That is:
<code>@import url(position.css);@import url(navs.css);</code>
It made editing lots of css code way easier and more organized. How would I do this with TXP? How would I refer to each stylesheet (if possible?)
Last edited by mrdale (2006-01-20 17:14:45)
Offline
Re: Nested CSS files
Should be able to still do it…just use an absolute URL to the style files.
Actually a relative should work too, like…
url(../styles/a.css)
Last edited by Destry (2006-01-20 17:43:49)
Offline
Re: Nested CSS files
> Destry wrote: Should be able to still do it…just use an absolute URL to the style files.
I still want to manage these files inside of TXP. so how would I reference a TXP style called “position”?
Offline
Re: Nested CSS files
Oops, sorry, I see now.
Hmmm, interesting question. Styles are tied a Section, so maybe there’s a way to nest a Tag combination in the url part. I’m not sure. I’ll keep an eye on this though ;)
Maybe that last bit in this FAQ is a piece of the puzzle.
Last edited by Destry (2006-01-20 17:49:45)
Offline
Re: Nested CSS files
I do use the same CSS for everything, if that matters.
Thanks, and et me know what you find out.
Offline
#6 2006-01-20 19:00:55
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: Nested CSS files
You can still get a given stylesheet out of css.php, regardless of section. Just call css.php?n=name
.
-Kurt
kurt@kurtraschke.com
Offline
Re: Nested CSS files
Big Danke, Trying…
Bing works like a charm! Less scrolling!
Last edited by mrdale (2006-01-20 19:39:03)
Offline
Pages: 1