Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-03-15 09:19:00
- davidgordon
- Member
- Registered: 2005-04-10
- Posts: 23
Can I use an 'external' CSS for testing?
I’m building a new site on my local Mac and using CSSEdit . Its a pain to have to copy the CSS into TXP every time I make a small change. Can I reference the CSS on my local Mac to TXP? I tried this in my “default” page
<code>
<link rel=“stylesheet” href=”/Users/myusername/Desktop/TXP.css” type=“text/css” media=“screen” />
</code>
but it doesn’t work. Maybe I need a full href path? Any clues to set me off in the right direction?
Thanks!
Offline
Re: Can I use an 'external' CSS for testing?
the href should be file:///E:/path/to/css
at least that’s the way it’s on a windows environment.
try opening the css on your browser and copy the url from there.
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
#3 2006-03-15 10:22:07
- whatbrick
- Member
- From: Texas
- Registered: 2006-03-13
- Posts: 100
Re: Can I use an 'external' CSS for testing?
The href attribute will take either a relative or absolute path(from the site’s root directory, not the server’s)…so http://somesite.com/styles.css
will work, or styles/styles.css
will work as well (or /includes/styles.css
).
The way you have it now, it’s trying to look for the file in http://siteurl.com/Users/myusername/Desktop/TXP.css
.
Do not taunt the Markup Monkey!
Offline
#4 2006-03-15 10:46:08
- davidgordon
- Member
- Registered: 2005-04-10
- Posts: 23
Re: Can I use an 'external' CSS for testing?
Thanks for that, I now have
<code>
<link rel=“stylesheet” href=“file:///Users/myusername/Desktop/TXP.css” type=“text/css” media=“screen” />
</code>
and it works perfectly!
Offline