0

import css problem

asked 2006-04-21 04:03:29 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2006-04-21 05:52:25 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

link publish delete flag offensive edit

answered 2006-04-27 09:52:58 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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?

link publish delete flag offensive edit

answered 2006-04-27 15:39:53 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

link publish delete flag offensive edit

answered 2006-04-28 01:24:39 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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:)

link publish delete flag offensive edit

answered 2006-05-04 11:59:08 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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,

link publish delete flag offensive edit

answered 2006-05-04 12:35:53 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

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-21 04:03:29 +0800

Seen: 1,050 times

Last updated: May 04 '06

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