Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Styles not Displayed in Editor
#12
Alan-A Wrote:It works for me with such simple styles but I don't want to use them as they're coded directly into the HTML tag with something like " style='color:red;' ".
What I was wondering was if you have it working for your own classes, like the "Code" example you gave in your post #4, where the editor would enter something like " class='code' " into the HTML tag?

I don't understand your question.
I always use classes as you can see in the example, e.g. motto1 on a paragraph level or code on span level.
They are e.g. defined as follows in the style sheet:
Code:
.motto1 {
  color: #9BBB59;
  font-size: 140%;
  font-style: italic;
  font-weight: bold;
  line-height: 1.4em;
  text-align: center;
}
span.code {
  font-family: 'Courier New',monospace;
  font-size: 90%;
}
If the customer wants to have different colors or a complete new theme, I just change the style sheet, as nowhere in the pages there are concrete styles. For that reason I normally won't give the user the possibility to choose colors or fonts but let him describe what he wants to achieve functionally (like highlight a text or paragraph, have a technical description, etc.) and provide css classes for that. Then the user can select the desired class from the styles dropdown and doesn't have to remember that highlighting is done with red - or was it light red?
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-18, 20:07:14
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-18, 20:40:53
Custom Styles not Displayed in Editor - by Connie - 2011-09-18, 20:42:11
Custom Styles not Displayed in Editor - by mvlcek - 2011-09-18, 21:05:34
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-19, 02:36:02
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-28, 03:11:44
Custom Styles not Displayed in Editor - by Connie - 2011-09-28, 03:25:23
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-28, 18:10:46
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-30, 00:23:42
Custom Styles not Displayed in Editor - by mvlcek - 2011-09-30, 00:58:45
Custom Styles not Displayed in Editor - by Alan-A - 2011-09-30, 03:02:06
Custom Styles not Displayed in Editor - by mvlcek - 2011-09-30, 03:30:48
Custom Styles not Displayed in Editor - by Connie - 2011-09-30, 03:30:55
Custom Styles not Displayed in Editor - by Alan-A - 2011-10-03, 01:11:50
Custom Styles not Displayed in Editor - by mvlcek - 2011-10-03, 01:36:08
Custom Styles not Displayed in Editor - by Alan-A - 2011-10-03, 02:10:16



Users browsing this thread: 1 Guest(s)