Is there any way to create buttons in the editor to apply styles such as the following ones?:
- Code: Select all
p {
text-align:center;
}
- Code: Select all
.centered {
text-align:center;
}
- Code: Select all
p#id {
text-align:center;
}
- Code: Select all
div.centered p {
text-align: center;
}
That is, styles for elements without a specific class, classes without a specific element, elements with specific ids or elements with parent/children restrictions.
So far I just know that the following is possible:
- Code: Select all
p.centered {
text-align: center;
}
For which the style should be defined to work with WYMeditor this way:
- Code: Select all
/* WYMeditor */
.centered p {
text-align: center;
}
/* /WYMeditor */
Thanks in advance,
Rafa