0

Issue overriding style properties for a row via CSS file

asked 2014-08-21 12:36:44 +0800

Antoc gravatar image Antoc
21 4

I have created a zul page that contains a grid. Initially, in order to override the alternating white/grey background of the rows, I have included in each of the rows tag the following property:

style="background:#FFFFFF; border: 1px solid white;"

This worked as expected. However, in order to improve the efficiency of the application, I moved the style properties in a CSS file: in each of rows the aforementioned code was replaced with sclass="white-row", and inside the specified CSS file the following code, as expected, was added:

.white-row{
    background:#FFFFFF;
    border: 1px solid white;
}

The problem is that it doesn't work. It's not a problem related to the referencing of the CSS file, as it contains other CSS properties which are used in the zul file without any problem. Does anyone know where the problem may be? Thanks in advance

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-08-21 12:54:55 +0800

Ganeshkhakare gravatar image Ganeshkhakare
150 4

updated 2014-08-21 12:56:00 +0800

.white-row>.z-row-inner{
    background:#FFFFFF ;
    border: 1px solid white;
}

Try this.

link publish delete flag offensive edit

Comments

Just tried: it doesn't work

Antoc ( 2014-08-21 12:59:31 +0800 )edit
0

answered 2014-08-21 14:26:05 +0800

Ganeshkhakare gravatar image Ganeshkhakare
150 4

updated 2014-08-21 14:29:31 +0800

I tried it on sandbox it is working fine. Can you share some part of your code? I am assuming you are setting [sclass = "white-row"] to each row instead of rows.

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2014-08-21 12:36:44 +0800

Seen: 8 times

Last updated: Aug 21 '14

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