﻿{"id":426,"date":"2009-05-25T04:43:00","date_gmt":"2009-05-25T04:43:00","guid":{"rendered":"https:\/\/chayilyam.com\/stories\/?p=426"},"modified":"2009-05-25T04:43:00","modified_gmt":"2009-05-25T04:43:00","slug":"a-little-quiz","status":"publish","type":"post","link":"https:\/\/chayilyam.com\/stories\/a-little-quiz\/","title":{"rendered":"A Little Quiz"},"content":{"rendered":"<p>Which example would you think is faster to find the margin-right property?<\/p>\n<p><span style=\"font-weight:bold; font-size:16px\">Example #01<\/span><\/p>\n<div style=\"font-style:italic; padding:10px; border:1px solid #333; background:#dfdfdf\">div#header h1 {<br \/> z-index: 101;<br \/> color: #000;<br \/> position: relative;<br \/> line-height: 24px;<br \/> margin-right: 48px;<br \/> border-bottom: 1px solid #dedede;<br \/> font-size: 18px;<br \/>}<\/div>\n<p><span style=\"font-weight:bold; font-size:16px\">Example #02<\/span><\/p>\n<div style=\"font-style:italic; padding:10px; border:1px solid #333; background:#dfdfdf\">div#header h1 {<br \/> border-bottom: 1px solid #dedede;<br \/> color: #000;<br \/> font-size: 18px;<br \/> line-height: 24px;<br \/> margin-right: 48px;<br \/> position: relative;<br \/> z-index: 101;<br \/>}<\/div>\n<p>You can\u2019t tell me that Example 2 isn\u2019t faster. By alphabetizing your properties, you are creating this consistency that will help you reduce the time you spend searching for a specific property.<\/p>\n<p>I know some people who organize one way and others who organize another, but at my company, we made a consensus decision to all organize alphabetically. It has definitely helped when working with other people\u2019s code. I cringe every time I go into a stylesheet where the properties are not sorted alphabetically.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Which example would you think is faster to find the margin-right property? Example #01 div#header h1 { z-index: 101; color: #000; position: relative; line-height: 24px; margin-right: 48px; border-bottom: 1px solid #dedede; font-size: 18px;} Example #02 div#header h1 { border-bottom: 1px solid #dedede; color: #000; font-size: 18px; line-height: 24px; margin-right: 48px; position: relative; z-index: 101;} You &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[547],"tags":[],"class_list":["post-426","post","type-post","status-publish","format-standard","hentry","category-z-index"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/pfoK1S-6S","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/posts\/426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/comments?post=426"}],"version-history":[{"count":0,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/posts\/426\/revisions"}],"wp:attachment":[{"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/media?parent=426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/categories?post=426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chayilyam.com\/stories\/wp-json\/wp\/v2\/tags?post=426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}