0

Problem setting sclass property on a button with mold = trendy

asked 2012-03-05 20:46:15 +0800

andreasboos gravatar image andreasboos
105 3

Hi

I'm trying to use an alternate css for the buttons, but I'm not succeeding. Follow the tips of the documentation and nothing.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<zk>
<window>
<style content=".mycss{font-size:15pt}" />
<button mold="trendy" sclass="mycss" label="My Button" />
</window>
</zk>

I looked at the html generated by firebug and everything seems to be ok (<span id="w0FQ2" class="mycss z-button">), but the CSS is not applied. I did more tests with other components and everything works right. The problem is only with the button with mold = trendy.

Btw
ZK 5.0.10 EE (build: 2012010312)
Firefox 9.0.1

sorry for my terrible english

Thanks

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-03-08 01:28:24 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

.mycss{} is not strong enough for fonr-size of trendy .
try .mycss .z-button-cm {font-size:15pt}

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<zk>
<window>
<style content=".mycss .z-button-cm{font-size:15pt}" />
<button mold="trendy" sclass="mycss" label="My Button" />
</window>
</zk>

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: 2012-03-05 20:46:15 +0800

Seen: 160 times

Last updated: Mar 08 '12

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