We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6726
    • 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
      • 2191
      • 64 Posts
      Yes, I did. Don’t understand why it wouldn’t at least work in FF... smiley
      • 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)?
          Mike Reid - www.pixelchutes.com
          MODx Ambassador / Contributor
          [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
          ________________________________
          Where every pixel matters.
          • 2191
          • 64 Posts
          Yup, I sure did. huh Here’s the modx css document.... http://www.kauffmanmarketplace.com/stylesheet.css

          It seems to be showing up fine. For some reason, the browsers don’t want to reference it...
          • 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)
              Mike Reid - www.pixelchutes.com
              MODx Ambassador / Contributor
              [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
              ________________________________
              Where every pixel matters.
              • 2191
              • 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.
                • 27330
                • 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.
                    Mike Reid - www.pixelchutes.com
                    MODx Ambassador / Contributor
                    [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                    ________________________________
                    Where every pixel matters.
                    • 27330
                    • 884 Posts
                    Thanks for the reply, I don’t use TinyMce, or fckeditor. I’ll give EditArea a try and will post back.
                      • 27330
                      • 884 Posts
                      Pixelchutes thanks for the post. with EditArea the formatting looks normal. That is one sweet plugin.