Overwriting"
From Documentation
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
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. | 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:Concepts3. | + | [[Image:Concepts3.png|250px|thumb|Overwriting Demo]] |
For example Textbox. | For example Textbox. |
Latest revision as of 06:31, 20 September 2010
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.
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.