Overwriting

From Documentation
Revision as of 01:32, 8 September 2010 by Elton776 (talk | contribs) (Created page with 'The last part, it is called overwriting, replacing the original CSS rules of the component is that we want to customize all the components with a special style. [[Image:Concepts…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The last part, it is called overwriting, replacing the original CSS rules of the component is that we want to customize all the components with a special style.

Overwriting Demo

For example Textbox.

<zk>
<style dynamic="true">
.z-textbox {
    background: black;    
    color: white;    
    border: 3px outset blue;    
}
</style>
<textbox value="Default"/>
</zk>

As you can see, we merely replace the default CSS with black background, white color, and three pixel borders, we can use the component replacement instead.