-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3696999
By: nobody
Hi,
I am a new learner, I was going to import a css class into a .zul file after reading the Small Talk - Customizing Look and Feel, Part I - CSS.
Following is the content of the .zul file:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="style.css"?> <?page title="P63-"?> <window title="Start from P63, end at..." border="normal" width="99%"
id="main">
<toolbar orient="horizontal">
<toolbarbutton label="File" style="background-color:#DA535A; color:white;"/>
<toolbarbutton label="Edit" sclass="fieldlabel"/>
</toolbar>
</window>
the content of the class .fieldlabel in the style.css file is:
.fieldlabel {
font-family: verdana;
font-size: 11px;
color: #FEFFFF;
font-weight: bold;
background-color: #DA535A;
text-decoration: none;
}
Q: the lable "File" changes as my wish, but the label "Edit" does not take anything from the external css file. Please tell me why?
Thanks for your time.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3697077
By: henrichen
Well, it has something to do with the CSS's selector matching. The toobarbutton now is under toolbar and ...Try this and you see what I mean.
.toolbar .fieldlabel {
...
}
I will not suggest you do it this way because then you have to handle hover and other effects, too.
/henri
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3704094
By: k_yahoo_com_cn
Hopefully I am wrong.
I don't think that ZK support CSS well. It seems that not all component are capable to change their face with external style sheet.
Can we get another small talk about how to use css in ZK?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3704300
By: tomyeh
Hi Kevin,
Not all components can be configured as you want by use of style or sclass, because some of them are complex. However, they can be configured as long as you know what style class name are used and what structure they.
A small talk might not be enough. Rather, it will be part of the reference guide
-- describe them one by one. Hope I got enough resource to get it done sooner:(
Tom
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3705022
By: k_yahoo_com_cn
Thank you Tom:)
Sure, a complete develope reference will be extremely important. Wish we can use it ASAP.
Yesterday, I've done thing in normie.css.dsp and normmoz.css.dsp, but few changes happened. Some components must be quite complex.
Thanks again and good luck:)
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3713763
By: nobody
Hi,
I have a problem for calling a folder .css. I would like that when I click on a button,it call another css. I succed to call this css but the problem is thath this css is not apply.
How can I do?
Thanks,
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3713822
By: henrichen
I don't quite understand your issue. Please provide a reduced but complete zuml code that would demo your issue so we can test it.
Thanks.
/henri
Asked: 2006-04-21 04:03:29 +0800
Seen: 1,050 times
Last updated: May 04 '06