24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

lengthThe value must be interpreted as an integer.<strong>Author</strong> Developer Guide | 238percentageemexpxmmcminptpcThe value must be interpreted relative to another value (length, size) expressedin percents.The value must be interpreted as a size. 1 em is equal to the font-size of therelevant font.The value must be interpreted as a size. 1 ex is equal to the height of the xcharacter of the relevant font.The value must be interpreted as a size expressed in pixels relative to theviewing device.The value must be interpreted as a size expressed in millimeters.The value must be interpreted as a size expressed in centimeters.The value must be interpreted as a size expressed in inches. 1 inch is equal to2.54 centimeters.The value must be interpreted as a size expressed in points. The points usedby CSS2 are equal to 1/72th of an inch.The value must be interpreted as a size expressed in picas. 1 pica is equal to12 points.default_valueThis argument specifies a value that is used by default if the attribute value is missing. Thisargument is optional.Usage samples for the attr() functionConsider the following <strong>XML</strong> instance:Blue paragraph.Red paragraph.Red paragraph with largefont.Green paragraph with small font and margin.The para elements have bg_color attributes with RGB color values like #AAAAFF. You can usethe attr() function to change the elements appearance in the editor based on the value of thisattribute:background-color:attr(bg_color, color);The attribute font_size represents the font size in em units. You can use this value to change thestyle of the element:font-size:attr(font_size, em);The complete CSS rule is:para{display:block;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!