{"id":2486,"date":"2023-10-26T10:47:53","date_gmt":"2023-10-26T10:47:53","guid":{"rendered":"https:\/\/neptunesolution.in\/blog\/?p=2486"},"modified":"2023-10-26T10:48:52","modified_gmt":"2023-10-26T10:48:52","slug":"web-designing-services-in-chandigarh-7","status":"publish","type":"post","link":"https:\/\/neptunesolution.in\/blog\/2023\/10\/26\/web-designing-services-in-chandigarh-7\/","title":{"rendered":"Web Designing Services in Chandigarh"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"avoid-nesting\">Avoid Nesting<\/h2>\n\n\n\n<p>We use&nbsp;modular CSS&nbsp;naming conventions like&nbsp;BEM&nbsp;and&nbsp;SUIT. One thing these all have in common is a recommendation to decrease the specificity of your selectors whenever possible. This leads to practical guidance like avoiding ID selectors in favor of class selectors and avoiding cascading selectors whenever possible.<\/p>\n\n\n\n<p>Here\u2019s a practical example. If you\u2019ve got a&nbsp;<code>.button<\/code>&nbsp;class and you\u2019ve got a modifier to make it larger, like&nbsp;<code>.button.is-large<\/code>, that\u2019ll work great \u2014 until someone adds a rule saying that buttons in the sidebar should be extra-large (<code>.sidebar .button<\/code>). Now even if you put the&nbsp;<code>.is-large<\/code>&nbsp;modifier on your sidebar button, it won\u2019t change, because the sidebar rule came later in the stylesheet, and they\u2019re equal specificity. Suddenly you\u2019re caught in an arms race, updating the modifier to use&nbsp;<code>!important<\/code>&nbsp;or specificity hacks like&nbsp;<\/p>\n\n\n\n<p><strong>Email us:<\/strong>&nbsp;<a href=\"mailto:contact@neptunesolution.in\">contact@neptunesolution.in<\/a><\/p>\n\n\n\n<p><strong>Call:<\/strong>&nbsp;&nbsp;0172-4102740, +91-9780373638, 7495055288&nbsp;for more details.<\/p>\n\n\n\n<p><strong>Visit us:<\/strong>&nbsp;<a href=\"http:\/\/www.neptunesolution.in\/\">www.neptunesolution.in<\/a><\/p>\n\n\n\n<p><strong>Office address:<\/strong>\u00a0\u00a0Sector 34-A, SCO 156-157, second floor, Near Verka Corporate Office, Chandigarh \u2013 160022<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Avoid Nesting We use&nbsp;modular CSS&nbsp;naming conventions like&nbsp;BEM&nbsp;and&nbsp;SUIT. One thing these all have in common is a recommendation to decrease the specificity of your selectors whenever possible. This leads to practical guidance like avoiding ID selectors in favor of class selectors and avoiding cascading selectors whenever possible. Here\u2019s a practical example. If you\u2019ve got a&nbsp;.button&nbsp;class and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2487,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2486","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-top-it-company-in-chandigarh-mohali-and-panchkula"],"_links":{"self":[{"href":"https:\/\/neptunesolution.in\/blog\/wp-json\/wp\/v2\/posts\/2486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/neptunesolution.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/neptunesolution.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/neptunesolution.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/neptunesolution.in\/blog\/wp-json\/wp\/v2\/comments?post=2486"}],"version-history":[{"count":2,"href":"https:\/\/neptunesolution.in\/blog\/wp-json\/wp\/v2\/posts\/2486\/revisions"}],"predecessor-version":[{"id":2489,"href":"https:\/\/neptunesolution.in\/blog\/wp-json\/wp\/v2\/posts\/2486\/revisions\/2489"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/neptunesolution.in\/blog\/wp-json\/wp\/v2\/media\/2487"}],"wp:attachment":[{"href":"https:\/\/neptunesolution.in\/blog\/wp-json\/wp\/v2\/media?parent=2486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/neptunesolution.in\/blog\/wp-json\/wp\/v2\/categories?post=2486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/neptunesolution.in\/blog\/wp-json\/wp\/v2\/tags?post=2486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}