Show/Hide | Help Center |
Cascade Style Sheets(CSS) can be used to style an HTML document in three ways:
KompoZer has an inbuilt style sheet editor called CaScadeS. CaScadeS can be used to produce either an internal style sheet or an external one. As opposed to inline styles, internal or external style sheets help to keep the content and style information separate.
To style the html document you are editing, CaScadeS can be started by clicking on Tools and choosing CSS Editor. CaScadeS allows two modes of style sheet editing:
In case there is no style sheet, a new style sheet will be automatically created.
[ Return to beginning of section ]
Using CaScadeS, one can create either internal style sheets or external style sheets. To create an internal style sheet:
To create an external stylesheet:
Tip: Always save the html document before attaching local style sheet. Also, save document immediately before closing the CSS editor.
Tip: Use Refresh button in the left pane, if stylesheet is not immediately downloaded.
[ Return to beginning of section ]
After creating one or more stylesheets for the html document, rules can be created for each stylesheet individually. To use a particular stylesheet for creating or modifying rules, highlight the stylesheet in the left pane by clicking with left mouse button. The right pane will show the detials of the stylesheet in the General Tab. To create new rules:
Rules can be defined using the styling tabs (Text, Background, Border, Box and Aural) in the right pane. To see all the definitions of a style rule, highlight the rule in the left pane and click on "General" tab in the right pane. The "General" tab shows all definitions currently applied to the rule.
[ Return to beginning of section ]
Copyright © 2004-2009 Contributors to the Nvu, KompoZer Help Documentation Project.