performance - CSS reducing syntax -


I should get two different HTML elements, which are at the same nesting level, have the same CSS property value. Is there any substitute for this waste syntax?

  .level1 .level2 .level3 element1 {/ * rule *} .level1 .level2 .level3 element2 {/ * rule * /}  

I Was thinking

  .level1 .level2 .level3 element1, .level1 .level2 .level3 element2 {/ * rule * /}  

... but It looks misleading and not very little.

Is the best way to define a new class?

  .level1 .level2 .level3 element1, .level1 .level2 .level3 element2 {} < / Code> 

or

  .level1 .level2 .level3 * {}  

Can not change source code only Are you The latter will fail if you have elements other than element 1 and element2. I had to go with the former


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -