Container for style rules. It must be the first child of the containing canvas element. Rules in this element will override properties set in the theme for the canvas.
Attribute | Description | Type | Default | Options | Use |
---|---|---|---|---|---|
type | The type of stylesheet | xs:string | none | optional |
The welcome.mlyt layout can be found in the MCS/repository/xml-repository directory.
<?xml version="1.0" encoding="UTF-8"?>
<canvas layoutName="/welcome.mlyt" pageTitle="style">
<style type="text/css">
.code {
color:red;
}
</style>
<pane name="background">
<p>The <span class="code">span</span> element applies
style to inline content.</p>
</pane>
</canvas>