optimization - CSS: Duplicate Selectors vs. Duplicate Declarations -


Which CSS writing techniques provide technology more efficiently:

1) The same style Repeat property

Example 1: Duplicate font-size, but less rule

  

Code> P {font-size: 1em; Color: # 000; } H1 {font-size: 1em; Color: #fff; }

or example 2: more rules but a font-size

  p, h1 {font-size: 1em; } P {color: # 000; } H1 {color: #fff; } 

This is the best source I found on this topic. I demonstrate that performance Duplicate property / value pairs are very bad:

Enter image details here < / P>

"Long" refers to Gregory as "bloated" format where the qualities are repetitive in many selectors.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -