0

CSS class with ZK

asked 2006-04-06 07:28:04 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3672162

By: michelito

I have unn problem for calling a CSS class. I would like to call a CSS class when a click on a row in a text box. For example,when I click on the row green,my background become green.

I do like this


<listbox rows="1" mold="select">
<listitem label="green" class="green" />
<listitem label="red" class="red" />
<listitem label="yellow" />
</listbox>


My class is


.red {
background-color:red;
border-style:solid;
border-width:1px;
border-color:blue;
margin-left:225px;
padding:10px;
height:250px;
position:absolute;
left: 240px;
top:65px
}


It don't work,In fact ti's the word red that become red,not the background of the window.


thanks,


delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2006-04-06 17:03:50 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3673244

By: tomyeh

The attribute for CSS class is called sclass, because getClass() is reserved by Java.

link publish delete flag offensive edit

answered 2006-04-07 08:51:16 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3674313

By: michelito

How can I do for select a row? Is there a fonction like ONclick or onchange?
My problem is that I can't change the color of the background of the window.
The color of the row in the listbox change but not the background.

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: 2006-04-06 07:28:04 +0800

Seen: 368 times

Last updated: Apr 07 '06

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