Should work. Did you edit the .htaccess as instructed (uncomment some of the lines at the bottom of the .htaccess provided with MODx) ?
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
☆ A M B ☆
- 1,056 Posts
Quote from: arty at Apr 21, 2007, 10:02 AM
I’ve been trying to use my one css stylesheet as a modx document on a site i’m working on over at http://www.kauffmanmarketplace.com with no luck. It shows up fine in Opera...but it’s not showing the css in IE or FF. Weirdness. Any ideas anyone?
Did you change the content type for the document? (text/css)?
-
☆ A M B ☆
- 1,056 Posts
Content-Type:·text/css;·charset=UTF-8
Yep, looks like you’re right...Hmmm....
What about trying your @import with a relative path to the CSS (Not absolute URL) ? ...anything?
<style type="text/css">@import url(’/stylesheet.css’);</style>
http://www.w3.org/TR/REC-CSS2/cascade.html (See section 6.3)
I brought down a local copy of the site, modified that line, and got it to work in FF 2. (I did this by also adding:
<base href="http://www.kauffmanmarketplace.com/"/>
to the <head> section)
Solved, guys. Thanks all for your help.
Seems the ";" makes a big difference. I must have dropped it and that was my problem. It works great now.
is there any way to keep the formatting of the stylesheet ?
I’ve followed the instructions and everything seems to work, but if I try to edit the document I see all the code in a single line.
This can be sweet if I can use it to do these small changes and save the waiting of uploading again the css after every pixel change.
I have the file as text/css and set on blank template.
-
☆ A M B ☆
- 1,056 Posts
Quote from: sinbad at Feb 26, 2008, 11:47 PM
is there any way to keep the formatting of the stylesheet ?
I’ve followed the instructions and everything seems to work, but if I try to edit the document I see all the code in a single line.
Are you by chance using the TinyMCE editor to make your changes? I wonder if it could be conflicting?
You could try using the EditArea plugin w/ PHP syntax highlighting, etc:
http://modxcms.com/Plugin-EditArea-1263.html to see if your formatting remains.
Thanks for the reply, I don’t use TinyMce, or fckeditor. I’ll give EditArea a try and will post back.
Pixelchutes thanks for the post. with EditArea the formatting looks normal. That is one sweet plugin.