Re: Assigning CSS class to a tag

Tue, 17 Mar 2009 02:59:22 -0700

Hi Jamie.  A very quick solution is to wrap a named div around your
text placeholder, and then tell your stylesheet to apply a particular
style to any <table> that appears within that div.  Obviously, the
styling will not be applied within the text editor itself, but as soon
as the user saves the text, they'll then see the styled table(s).  The
only downside to this is that if ever you *don't* want a table in that
placeholder to be styled, your editor will have to manually apply a
class to the table to override the generic style.

See example here for pasting into your template:

<style>
    .myText table {
        background:yellow;
        border:1px solid black;
    }
</style>


<div class="myText">
    <%txt_myText%>
</div>



On Mar 16, 10:58 pm, JJB <[email protected]> wrote:
> Is it possible to automatically assign CSS class to a <table> tag in a
> Text Placeholder? Or do the Content Editor need to go in Source Code
> of the Text Editor?
>
> I am using CMS 7.5 and the default Text Editor.
>
> thanks,
> Jamie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to