{"id":258,"date":"2020-06-20T17:34:39","date_gmt":"2020-06-20T17:34:39","guid":{"rendered":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/http\/code.oxyset.com\/?p=258"},"modified":"2022-05-13T20:03:47","modified_gmt":"2022-05-13T20:03:47","slug":"tabs-with-css-only","status":"publish","type":"post","link":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/tabs-with-css-only\/","title":{"rendered":"Tabs with CSS only"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">HTML structure<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup\">&lt;nav&gt;\n  &lt;ul class=\"stepProgress\"&gt;\n    &lt;li&gt;&lt;a href=\"#1\" &gt;1&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#2\" &gt;2&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#3\" &gt;3&lt;\/a&gt;&lt;\/li&gt;\n    &lt;li&gt;&lt;a href=\"#4\" &gt;4&lt;\/a&gt;&lt;\/li&gt;\n  &lt;\/ul&gt;\n&lt;\/nav&gt;\n&lt;div id=\"1\"&gt; Step 1 &lt;\/div&gt;\n&lt;div id=\"2\"&gt; Step 2 &lt;\/div&gt;\n&lt;div id=\"3\"&gt; Step 3 &lt;\/div&gt;\n&lt;div id=\"4\"&gt; Step 4 &lt;\/div&gt;\n&lt;div id=\"5\"&gt; Step 5 &lt;\/div&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">CSS<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"css\" class=\"language-css\">div{\n  width:200px; height:200px;\n  border:2px solid grey;\n  text-align:center;\n  display:none;\n}\n\ndiv:target{\n  display:block;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example on JSFiddle <\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML structure CSS Example on JSFiddle<\/p>\n","protected":false},"author":1,"featured_media":46528,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Tabs with CSS only - Code DPlugins","description":"HTML structure CSS Example on JSFiddle"},"_slim_seo_primary_term_category":0,"_slim_seo_primary_term_post_tag":0,"footnotes":""},"categories":[22],"tags":[],"dpc_library":[],"class_list":["post-258","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"_links":{"self":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":0,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media\/46528"}],"wp:attachment":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/tags?post=258"},{"taxonomy":"dpc_library","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/dpc_library?post=258"}],"curies":[{"name":"wp","href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/api.w.org\/{rel}","templated":true}]}}