<style> Element

This element provides the information which is to be stored between the STYLE tags, between the HEAD tags of the Ephox EditLive! for Java document.  The element has no attributes.

Element Tree Structure

<editLiveForJava>
    <document>
        <html>
            <head>
                <style>

<editLiveForJava>
    <document>
        <html>
            <head>
                <style>
                    <!--style configuration settings-->
                </style>
            ...
            </head>
            ...
        </html>
    </document> 
    ...
</editLiveForJava>

Example

The following example demonstrates how to specify an embedded style sheet for use with EditLive! for Java.  The style sheet defined sets the font size to 14pt and the font to Arial for the BODY of the document.

<editLiveForJava>
    <document>
        <html>
            <head>
                <style>
                    p {font-size:14pt}
                    body {font-family:Arial}
                </style>
                ...
            </head>
            ...
        </html>
    </document>
    ...
</editLiveForJava>

Remarks

Conflicts between externally linked style sheets and embedded style sheets in EditLive! for Java are resolved according to the CSS precedence rules.  Thus, any styles defined in embedded style sheets take precedence over those defined in an external style sheet.  Thus, styles defined in the <style> element of the EditLive! for Java XML configuration file have precedence over those defined in an external style sheet linked to via the <link> element within the configuration file.

The <style> element can appear only once within the <head> element.

See Also