We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5091
    • 332 Posts
    Hi, I have this dynamic CSS form that is working fine, but in the source the link file is in ’html’ format instead of CSS. Would like to find out why.
    If you go to the source you can see it displayed: <link type="text/css" href="http://mydomain.com/contactform.html" rel="stylesheet" />

    http://tinyurl.com/2q6ayy


    any thought?

    thanks!
    tgp
      • 6726
      • 7,075 Posts
      Either you just forgot to change the content type to text/css (in document properties tab) or forgot to add .css to your alias to override the default .html extension in FURLs wink (change to contactform.css)

      Very nice design by the way !
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id
        • 5091
        • 332 Posts
        now it becomes : contactform.css.html huh

        I have set the Uses template to BLANK and content type ’TEXT/CSS’.

        thanks for the compliment on design smiley Once I get more confortable with Modx, I will release a few layout templates to the community, hopefully that won’t be long.

        tgp
          • 6726
          • 7,075 Posts
          Hmmm... that’s strange !

          It should work if you’ve set template to blank and content-type to text/css, I know it works for me on several website... I have no custom .htaccess, and no other settings which would be specific... huh

          About the design : well, it’s great really, clean and well polished modern design with balanced colors and alignment smiley

            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l&#39;outil id
            • 24421
            • 44 Posts
            I also use dynamic CSS but I name the alias document as ’style.css’ and I use the ’_blank’ template and set the Type to text/css, I achieved this after reading Dynamic CSS with TVs the only problem with that tutorial is what you need to write the complete alias ’style.css’ or ’document.html’ and the containers need to be named without extension or you finish with FURL like this: ’http://example.com/container.html/document.html’ or this other ’http://example.com/container’ when you exclude the file container extension (html). Very annoying.. embarrassed

            I’am thinking about a very dinamyc CSS who:

            • Purge the css file of unneeded declarations, like unused ’id’s’ or ’classes’.
            • Compound dynamically a new css file, joining css documents.
            • Detect the users browser to serve the needed ’hacks’. Not ’hacks’ this way, only valid css.
            • Finally, before send the result css file, compress it.
            But this is only a dream for now. rolleyes

            Note: I can’t visit your site because is in ’Maintenance’

            Regards,
            Ramon