0

CSS

asked 2008-10-21 22:59:03 +0800

Mambo gravatar image Mambo
18

I've reached a point where I need to change the look of ZK. I'm looking at CSS and I don't get how to apply the style guide. I've got a simple window with two buttons and I'm trying to change the look.
I was looking through the button CSS source and found the z-button class. This appears to work. I also saw another post on the forum that used this approach. I'm wondering if this is the right way to do things. My first time touching CSS, I get how it works, I just need to know how to apply it to ZK.

<window border="normal" width="300px" height="200px">
<style>
.z-button .z-button-cr, .z-button .z-button-bl, .z-button .z-button-bm
{
background-image:none;
}
</style>

<vbox width="100%">
<window height="150px" border="normal"/>
<hbox>
<button label="Test" sclass="button"/>
<button label="Test 2"/>
</hbox>
</vbox>
</window>

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-10-22 00:24:27 +0800

flyworld gravatar image flyworld
155 3

updated 2008-10-22 00:25:08 +0800

try this

<style>
.z-button .z-button-cr,.z-button .z-button-cl, .z-button .z-button-cm,
.z-button .z-button-bl, .z-button .z-button-bm,.z-button .z-button-br,
.z-button .z-button-tl, .z-button .z-button-tm,.z-button .z-button-tr {
  background-image:none;
  background-color:#008bb6;
  color:white
}
.button2  .z-button-cm {
  color:red
}
</style>

<vbox width="100%">
  <window height="150px" border="normal"/>
  <hbox>
    <button label="Test" sclass="button2"/>
    <button label="Test 2"/>
  </hbox>
</vbox>
</window>

you will get two different button
and you can make your own :D

link publish delete flag offensive edit

answered 2008-10-22 02:07:50 +0800

Mambo gravatar image Mambo
18

Thanks

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-10-21 22:59:03 +0800

Seen: 229 times

Last updated: Oct 22 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More