Embedded CSS styles cause all page content to vanish

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Tanner

Embedded CSS styles cause all page content to vanish

Post by Tanner »

Hello.

When adding an embedded CSS style to any page within a CMSMS site, the entire page content then fails to render resulting in either a blank screen or a shell of the site with no content. Is there any fix for this do you think? Below is an example bit of code to show you what I mean, if you put it into any content page you should see the same results as I do.

Code: Select all

<style type="text/css">
<!--
.myStyle {color: #FF0000}
-->
</style>
<p class="myStyle">This is a test.</p>
<p>This is another test.  </p>
I am currently using version 0.12.1 of CMSMS. Thank you.
cyberman

Re: Embedded CSS styles cause all page content to vanish

Post by cyberman »

Have you tried this:

Code: Select all

{literal}<style type="text/css">
<!--
.myStyle {color: #FF0000}
-->
</style>{/literal}
The CMSms output is parsed by smarty. If smarty can't parsed someone you will see a blank page. With {literal}{/literal} tags you can make smarty blind for the included code  ;).
Tanner

Re: Embedded CSS styles cause all page content to vanish

Post by Tanner »

Yes, that is exactly what I was looking for  ;D.  Thanks man, guess I wasn't aware of the command before!
Locked

Return to “Layout and Design (CSS & HTML)”