> is styled differently, and text-align in oxy_label styl
Posted: Thu Aug 15, 2013 6:48 pm
I have a DITA <note> element:
<note>This is a DITA note element. <ph>This is an embedded ph element that is styled in this horrific background-color.</ph> If I use the < and > entities as in "3 < 4 or 4 > 3", the the (>) symbol is rendered with a different background-color (#F0F0F0), which I cannot find in any CSS file in the entire Oxygen installation tree. If the > symbol is entered in Oxygen, then it is inserted as the symbol rather than the entity and the background-color is not overridden. These files were entered by a different editor.</note>
Here's my debug CSS:
*[class~="topic/note"]{
margin-left: 1.5in;
margin-right: 1.5in;
margin-top: 14pt;
margin-bottom: 14pt;
background-color: #FFC296;
}
*[class~="topic/note"]:before{
display: block;
content:
oxy_label(
text, "Note\A",
styles, "font: Helvetica; font-weight: bold; font-size: 14pt;"
width, 8em
)
}
*[class~="topic/note"] * {
background-color: #FFAFEE;
}
I have two questions:
1. What is the source of the styling difference for the > compared to the < entities?
2. If I try to add a "text-align: center" to the oxy_label to center the word "Note", it indents it by about 1 cm, but does not center. Is this an incorrect use of an oxy_label styles attribute?
John
<note>This is a DITA note element. <ph>This is an embedded ph element that is styled in this horrific background-color.</ph> If I use the < and > entities as in "3 < 4 or 4 > 3", the the (>) symbol is rendered with a different background-color (#F0F0F0), which I cannot find in any CSS file in the entire Oxygen installation tree. If the > symbol is entered in Oxygen, then it is inserted as the symbol rather than the entity and the background-color is not overridden. These files were entered by a different editor.</note>
Here's my debug CSS:
*[class~="topic/note"]{
margin-left: 1.5in;
margin-right: 1.5in;
margin-top: 14pt;
margin-bottom: 14pt;
background-color: #FFC296;
}
*[class~="topic/note"]:before{
display: block;
content:
oxy_label(
text, "Note\A",
styles, "font: Helvetica; font-weight: bold; font-size: 14pt;"
width, 8em
)
}
*[class~="topic/note"] * {
background-color: #FFAFEE;
}
I have two questions:
1. What is the source of the styling difference for the > compared to the < entities?
2. If I try to add a "text-align: center" to the oxy_label to center the word "Note", it indents it by about 1 cm, but does not center. Is this an incorrect use of an oxy_label styles attribute?
John