0

how write css more compact

asked 2017-07-06 15:11:20 +0800

LuigiFabbri gravatar image LuigiFabbri
46 5

updated 2017-07-06 15:12:34 +0800

Hello,

i don't have much experience with css, is there a way to write this css more compact?

.transparent-grid .z-row-content { background: transparent !important; border: none !important; }

.transparent-grid .z-row-inner { background: transparent !important; border: none !important; }

.transparent-grid .z-rows { background: transparent !important; border: none !important; }

.transparent-grid .z-row { background: transparent !important; border: none !important; }

.transparent-grid .z-grid-odd { background: transparent !important; border: none !important; }

.transparent-grid .z-grid-body { background: transparent !important; border: none !important; }

.transparent-grid .z-grid-header { background: transparent !important; border: none !important; }

.transparent-grid .z-cell { background: transparent !important; border: none !important; }

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-07-07 08:06:13 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2017-07-07 08:07:32 +0800

in your case you can comma-separate the selectors resulting in the same styles.

e.g.:

.transparent-grid .z-row-content, .transparent-grid .z-row-inner, 
.transparent-grid .z-rows, .transparent-grid .z-row, 
.transparent-grid .z-grid-odd, .transparent-grid .z-grid-body, 
.transparent-grid .z-grid-header, .transparent-grid .z-cell { 
    background: transparent !important; border: none !important; 
}

Robert

link publish delete flag offensive edit

Comments

Thank Robert

LuigiFabbri ( 2017-07-26 09:43:34 +0800 )edit
0
link publish delete flag offensive edit

Comments

Thanks Hawk

LuigiFabbri ( 2017-07-26 09:43:58 +0800 )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: 2017-07-06 15:11:20 +0800

Seen: 18 times

Last updated: Jul 07 '17

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