User Tools

Site Tools


custom_css

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

custom_css [2013/03/18 07:39]
admin [Guidelines for Customizing CSS]
custom_css [2013/03/18 07:39] (current)
admin [Guidelines for Customizing CSS]
Line 45: Line 45:
  
 **2. Use specificity to effect overrides** \\ **2. Use specificity to effect overrides** \\
-More specific CSS will take priority over less specific CSS. Therefore, where straight duplicate of instructions fails, you can usually force your changes by making your instructions more specific. You can usually do this by fronting your instructions with a parent selector. For example:+More specific CSS will take priority over less specific CSS. Therefore, where straight duplication of instructions fails, you can usually force your changes by making your instructions more specific. You can usually do this by fronting your instructions with a parent selector. For example:
  
 <code>html div#the-block { ... }</code> <code>html div#the-block { ... }</code>
custom_css.txt ยท Last modified: 2013/03/18 07:39 by admin