-
- 7,075 Posts
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
Quote from: arty at Apr 21, 2007, 03:02 PM
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)?
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)
-
- 64 Posts
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.
-
- 884 Posts
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.
Quote from: sinbad at Feb 27, 2008, 05:47 AM
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.
-
- 884 Posts
Thanks for the reply, I don’t use TinyMce, or fckeditor. I’ll give EditArea a try and will post back.
-
- 884 Posts
Pixelchutes thanks for the post. with EditArea the formatting looks normal. That is one sweet plugin.