{"id":96,"date":"2011-07-02T01:07:00","date_gmt":"2011-07-02T01:07:00","guid":{"rendered":"http:\/\/behstant.com\/blog\/?p=96"},"modified":"2011-07-02T01:07:00","modified_gmt":"2011-07-02T01:07:00","slug":"basic-rules-for-css-and-the-cascade","status":"publish","type":"post","link":"https:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/","title":{"rendered":"Basic Rules for CSS and the Cascade !!"},"content":{"rendered":"<p>The other day I was trying to show to one of my co-workers about the cascade in CSS because he was arguing me that the route to apply a rule to an ID was too long and he only needed to use de ID like this.<\/p>\n<p><script type=\"syntaxhighlighter\" class=\"brush: css\"><![CDATA[ #span {  background: #000000; } ]]><\/script><\/p>\n<p>But the real code was this:<\/p>\n<p><script type=\"syntaxhighlighter\" class=\"brush: css\"><![CDATA[  #wrapper #container #span {   background: #000000;  }  ]]><\/script><\/p>\n<p>So I googled a little bit and found this good article. Leave your comments about it.<\/p>\n<div style=\"width: 425px;\" id=\"__ss_1658158\"> <strong style=\"display: block; margin: 12px 0pt 4px;\"><a href=\"http:\/\/www.slideshare.net\/maxdesign\/css-cascade-1658158\" title=\"CSS Cascade\" target=\"_blank\">CSS Cascade<\/a><\/strong> <iframe loading=\"lazy\" src=\"http:\/\/www.slideshare.net\/slideshow\/embed_code\/1658158\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" height=\"355\" width=\"425\"><\/iframe> <\/p>\n<div style=\"padding: 5px 0pt 12px;\"> View more <a href=\"http:\/\/www.slideshare.net\/\" target=\"_blank\">presentations<\/a> from <a href=\"http:\/\/www.slideshare.net\/maxdesign\" target=\"_blank\">Russ Weakley<\/a> <\/div>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The other day I was trying to show to one of my co-workers about the cascade in CSS because he was arguing me that the route to apply a rule to an ID was too long and he only needed to use de ID like this. But the real code was this: So I googled &#8230; <a title=\"Basic Rules for CSS and the Cascade !!\" class=\"read-more\" href=\"https:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/\" aria-label=\"Read more about Basic Rules for CSS and the Cascade !!\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[26],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-css"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Basic Rules for CSS and the Cascade !! &#187; The Code<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Basic Rules for CSS and the Cascade !! &#187; The Code\" \/>\n<meta property=\"og:description\" content=\"The other day I was trying to show to one of my co-workers about the cascade in CSS because he was arguing me that the route to apply a rule to an ID was too long and he only needed to use de ID like this. But the real code was this: So I googled ... Read more\" \/>\n<meta property=\"og:url\" content=\"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/\" \/>\n<meta property=\"og:site_name\" content=\"The Code\" \/>\n<meta property=\"article:published_time\" content=\"2011-07-02T01:07:00+00:00\" \/>\n<meta name=\"author\" content=\"Reedyseth\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Reedyseth\" \/>\n<meta name=\"twitter:site\" content=\"@Reedyseth\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Reedyseth\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/\"},\"author\":{\"name\":\"Reedyseth\",\"@id\":\"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f\"},\"headline\":\"Basic Rules for CSS and the Cascade !!\",\"datePublished\":\"2011-07-02T01:07:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/\"},\"wordCount\":83,\"commentCount\":0,\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/\",\"url\":\"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/\",\"name\":\"Basic Rules for CSS and the Cascade !! &#187; The Code\",\"isPartOf\":{\"@id\":\"http:\/\/behstant.com\/blog\/#website\"},\"datePublished\":\"2011-07-02T01:07:00+00:00\",\"author\":{\"@id\":\"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f\"},\"breadcrumb\":{\"@id\":\"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/behstant.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Basic Rules for CSS and the Cascade !!\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/behstant.com\/blog\/#website\",\"url\":\"http:\/\/behstant.com\/blog\/\",\"name\":\"The Code\",\"description\":\"Learn Web Solutions in WordPress, PHP, jand also purchase code solutions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/behstant.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f\",\"name\":\"Reedyseth\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g\",\"caption\":\"Reedyseth\"},\"description\":\"My Google Profile+\",\"sameAs\":[\"http:\/\/behstant.com\"],\"url\":\"https:\/\/behstant.com\/blog\/author\/reedyseth\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Basic Rules for CSS and the Cascade !! &#187; The Code","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/","og_locale":"en_US","og_type":"article","og_title":"Basic Rules for CSS and the Cascade !! &#187; The Code","og_description":"The other day I was trying to show to one of my co-workers about the cascade in CSS because he was arguing me that the route to apply a rule to an ID was too long and he only needed to use de ID like this. But the real code was this: So I googled ... Read more","og_url":"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/","og_site_name":"The Code","article_published_time":"2011-07-02T01:07:00+00:00","author":"Reedyseth","twitter_card":"summary_large_image","twitter_creator":"@Reedyseth","twitter_site":"@Reedyseth","twitter_misc":{"Written by":"Reedyseth"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/#article","isPartOf":{"@id":"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/"},"author":{"name":"Reedyseth","@id":"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f"},"headline":"Basic Rules for CSS and the Cascade !!","datePublished":"2011-07-02T01:07:00+00:00","mainEntityOfPage":{"@id":"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/"},"wordCount":83,"commentCount":0,"articleSection":["CSS"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/","url":"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/","name":"Basic Rules for CSS and the Cascade !! &#187; The Code","isPartOf":{"@id":"http:\/\/behstant.com\/blog\/#website"},"datePublished":"2011-07-02T01:07:00+00:00","author":{"@id":"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f"},"breadcrumb":{"@id":"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/behstant.com\/blog\/css\/basic-rules-for-css-and-the-cascade\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/behstant.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Basic Rules for CSS and the Cascade !!"}]},{"@type":"WebSite","@id":"http:\/\/behstant.com\/blog\/#website","url":"http:\/\/behstant.com\/blog\/","name":"The Code","description":"Learn Web Solutions in WordPress, PHP, jand also purchase code solutions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/behstant.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/behstant.com\/blog\/#\/schema\/person\/760327e1ee480ad2aabe8e40d784ec9f","name":"Reedyseth","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/117af509aa15be89968fe955258a7bf8ed362ec2adf1afcf2af50a976f2349fa?s=96&r=g","caption":"Reedyseth"},"description":"My Google Profile+","sameAs":["http:\/\/behstant.com"],"url":"https:\/\/behstant.com\/blog\/author\/reedyseth\/"}]}},"_links":{"self":[{"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":0,"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"wp:attachment":[{"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/behstant.com\/blog\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}