{"json_modified": "2014-03-25T19:45:51.246533", "slug": "CSS/Writing_Efficient_CSS", "tags": [], "locale": "ar", "title": "Writing efficient CSS", "translations": [{"locale": "en-US", "url": "/en-US/docs/Web/Guide/CSS/Writing_efficient_CSS", "last_edit": "2014-03-03T07:43:21", "title": "Writing efficient CSS"}, {"locale": "ja", "url": "/ja/docs/Writing_Efficient_CSS", "last_edit": "2012-06-01T08:36:37", "title": "Writing Efficient CSS"}, {"locale": "es", "url": "/es/docs/CSS/Escribir_CSS_eficiente", "last_edit": "2011-02-24T19:36:57", "title": "Escribir CSS eficiente"}, {"locale": "ko", "url": "/ko/docs/CSS/Writing_Efficient_CSS", "last_edit": "2012-10-04T23:44:25", "title": "\ud6a8\uc728\uc801\uc778 CSS \uc791\uc131\ud558\uae30"}, {"locale": "pt-BR", "url": "/pt-BR/docs/CSS/Escrever_folhas_de_estilo_eficientes", "last_edit": "2013-01-26T07:07:55", "title": "Escrever folhas de estilo eficientes"}, {"locale": "zh-CN", "url": "/zh-CN/docs/CSS/Writing_Efficient_CSS", "last_edit": "2013-04-22T02:26:30", "title": "\u7f16\u5199\u9ad8\u6548\u7684 CSS"}, {"locale": "it", "url": "/it/docs/Web/Guide/CSS/Scrivere_CSS_efficace", "last_edit": "2013-06-05T06:34:38", "title": "Scrivere CSS in modo efficace"}], "modified": "2014-03-25T19:45:49", "label": "Writing efficient CSS", "url": "/ar/docs/CSS/Writing_Efficient_CSS", "last_edit": "2012-09-08T04:25:01", "summary": "This document provides guidelines for optimizing CSS code, and more specifically on how to write efficient selectors.", "sections": [{"id": "How_the_style_system_breaks_up_rules", "title": "How the style system breaks up rules"}, {"id": "ID_Rules", "title": "ID rules"}, {"id": "Example", "title": "Example"}, {"id": "Class_Rules", "title": "Class rules"}, {"id": "Example_2", "title": "Example"}, {"id": "Tag_Rules", "title": "Tag rules"}, {"id": "Example_3", "title": "Example"}, {"id": "Universal_Rules", "title": "Universal rules"}, {"id": "Example_4", "title": "Example"}, {"id": "How_the_Style_System_Matches_Rules", "title": "How the style system matches rules"}, {"id": "Guidelines_for_Efficient_CSS", "title": "Guidelines for efficient CSS"}, {"id": "Avoid_Universal_Rules.21", "title": "Avoid universal rules"}, {"id": "Don.27t_qualify_ID-categorized_rules_with_tag_names_or_classes", "title": "Don\u2019t qualify ID rules with tag names or classes"}, {"id": "Don.27t_qualify_class-categorized_rules_with_tag_names", "title": "Don\u2019t qualify class rules with tag names"}, {"id": "Try_to_put_rules_into_the_most_specific_category_you_can.21", "title": "Use the most specific category possible"}, {"id": "Avoid_the_descendant_selector.21", "title": "Avoid the descendant selector"}, {"id": "Tag-categorized_rules_should_never_contain_a_child_selector.21", "title": "Tag category rules should never contain a child selector"}, {"id": "Question_all_usages_of_the_child_selector.21", "title": "Question all usages of the child selector"}, {"id": "Rely_on_inheritance.21", "title": "Rely on inheritance"}, {"id": "Use_-moz-image-region.21", "title": "Use -moz-image-region !"}, {"id": "Use_scoped_stylesheets", "title": "Use scoped stylesheets"}, {"id": "Original_Document_Information", "title": "Original Document Information"}], "id": 55039, "review_tags": []}