O'Reilly logo

ZK Developer's Guide by Markus Stauble, Hans-Jurgen Schumacher, Jurgen Schumacher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cascading Style Sheets (CSS)

One way to customize components is by the use of Cascading Style Sheets. This technique is familiar from HTML, and therefore, it's normal that Potix (the manufacturer of ZK framework) decided to offer that possibility as well.

A possible way to customize a component with a style is by using the style attribute of an element. We start by changing the layout of the login button.

<button label="${login}" style="border: 4px outset;background-color:lightgray;padding:5px;color: #0000AF; font-weight:bold">
<attribute name="onClick">
login();
</attribute>
</button>

The result is shown as follows:.

Another solution ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required