0

How to remove inline styles

asked 2017-01-30 12:38:18 +0800

ashishbhalerao gravatar image ashishbhalerao
1

I am trying to remove inline CSS which is adding by default please help me.

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2017-01-30 14:13:36 +0800

Darksu gravatar image Darksu
1991 1 4

Hello ashishbhalerao,

You could use zclass:

https://www.zkoss.org/wiki/ZKDeveloper'sReference/ThemingandStyling/CSSClassesand_Styles#zclass

Best Regards,

Darksu

link publish delete flag offensive edit

answered 2017-02-01 00:11:58 +0800

JustinFrost gravatar image JustinFrost
139 1 6

An ugly and not highly recommended method is to add an !important rule to the stylesheet.

For example:

.overrideInlineStyle{
    color: red !important;
}

That will not remove the color inline style, but will take precedence so give you the control over it.

link publish delete flag offensive edit

answered 2017-03-31 08:53:45 +0800

ashishbhalerao gravatar image ashishbhalerao
1

Hi Darksu,

Thank you, it is useful.

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
1 follower

RSS

Stats

Asked: 2017-01-30 12:38:18 +0800

Seen: 40 times

Last updated: Mar 31 '17

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