We typically try to employ basic html elements when styling content, then use css specificity to achieve the desired effect. For example:
Code: Select all
h3 {
color:#CCCCCC;
font: bold 14px/18px Arial, Helvetica, sans-serif;
text-transform:uppercase;
}
#sidebar h3 {
color:#50A1CD;
font:bold 14px/16px Arial, Helvetica, sans-serif;
text-transform:none;
}
Our problem is the WYSIWYG display - the Page Edit view doesn't show these div-specific styles within the Content Block editing windows, so the H3 in the Sidebar show up as gray, not the blue #50A1CD that they should be. The editor (our client) doesn't see them headings as blue, and then tries to add styles to the until it becomes blue (usually messing everything up in the process!).
In the example above the {content block='Sidebar'} is wrapped in . Is there a way to have TinyMCE read the container id or class of a Content Block, and display the styles accordingly?