{"id":17,"date":"2013-09-27T01:35:40","date_gmt":"2013-09-27T01:35:40","guid":{"rendered":"http:\/\/couchjedi.com\/?page_id=17"},"modified":"2023-12-25T16:01:09","modified_gmt":"2023-12-25T16:01:09","slug":"css","status":"publish","type":"page","link":"https:\/\/couchjedi.com\/?page_id=17","title":{"rendered":"CSS"},"content":{"rendered":"<h3>Selectors<\/h3>\n<table class=\"table table-striped\">\n<thead>\n<tr>\n<th>Selector<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><b>div span<\/b><\/td>\n<td>Select any <b>span<\/b> tag inside a <b>div<\/b> tag<\/td>\n<\/tr>\n<tr>\n<td><b>div > a<\/b><\/td>\n<td>Select any <b>a<\/b> tag that is a direct child of a <b>div<\/b> tag <\/td>\n<\/tr>\n<tr>\n<td><b>div+a<\/b><\/td>\n<td>Select any <b>a<\/b> tag that is immediately after a <b>div<\/b> tag <\/td>\n<\/tr>\n<tr>\n<td><b>div,a<\/b><\/td>\n<td>Select all <b>a<\/b> tags and all <b>div<\/b> tags <\/td>\n<\/tr>\n<tr>\n<td><b>div a:first-child<\/b><\/td>\n<td>Select the first <b>a<\/b> tag inside a <b>div<\/b> tag<\/td>\n<\/tr>\n<tr>\n<td><b>tr:nth-child(2n+0)<\/b><\/td>\n<td>Select every other row of a table starting with the first row<\/td>\n<\/tr>\n<tr>\n<td><b>tr:nth-child(3n+1)<\/b><\/td>\n<td>Select every 3rd row of a table starting with the second row<\/td>\n<\/tr>\n<tr>\n<td><b>a:nth-of-type(4)<\/b><\/td>\n<td>Select every <b>a<\/b> tag that is the 4<sup>th<\/sup> element of its parent<\/td>\n<\/tr>\n<tr>\n<td><b>a:nth-last-of-type(4)<\/b><\/td>\n<td>Select every <b>a<\/b> tag that is the 4<sup>th<\/sup> to last element of its parent<\/td>\n<\/tr>\n<tr>\n<td><b>input:disabled<\/b><\/td>\n<td>Select every <b>input<\/b> tag that is currently disabled<\/td>\n<\/tr>\n<tr>\n<td><b>input[type=&#8221;checkbox&#8221;]:checked<\/b><\/td>\n<td>Select every checkbox that is currently checked<\/td>\n<\/tr>\n<tr>\n<td><b>div:not(.fantastic)<\/b><\/td>\n<td>Select every <b>div<\/b> tag that doesn&#8217;t have the class <b>fantastic<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>:not(h1)<\/b><\/td>\n<td>Select everything that&#8217;s not an <b>h1<\/b> tag<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Selectors Selector Description div span Select any span tag inside a div tag div > a Select any a tag that is a direct child of a div tag div+a Select any a tag that is immediately after a div tag div,a Select all a tags and all div tags div a:first-child Select the first [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-17","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/couchjedi.com\/index.php?rest_route=\/wp\/v2\/pages\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/couchjedi.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/couchjedi.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/couchjedi.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/couchjedi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":14,"href":"https:\/\/couchjedi.com\/index.php?rest_route=\/wp\/v2\/pages\/17\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/couchjedi.com\/index.php?rest_route=\/wp\/v2\/pages\/17\/revisions\/75"}],"wp:attachment":[{"href":"https:\/\/couchjedi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}