{"id":46,"date":"2012-01-10T18:50:05","date_gmt":"2012-01-10T18:50:05","guid":{"rendered":"http:\/\/tier7.net\/blog\/?p=46"},"modified":"2012-01-12T20:49:08","modified_gmt":"2012-01-12T20:49:08","slug":"css-double-border","status":"publish","type":"post","link":"https:\/\/tier7.net\/blog\/2012\/01\/css-double-border\/","title":{"rendered":"CSS Double Border"},"content":{"rendered":"<p>Today I came across an interesting prospect &#8211; How to emulate a double border using only CSS.<\/p>\n<p>This can be achieved with the :before and :after\u00a0pseudo\u00a0selectors.<\/p>\n<p>xhtml<\/p>\n<pre>&lt;div id=\"myDiv\"&gt;Some Text Here&lt;\/div&gt;<\/pre>\n<p>CSS<\/p>\n<pre>#myDiv, #myDiv:after {\r\n    display:block;\r\n    background:#00f;\r\n    width:100px;\r\n}\r\n\r\n#myDiv:after {\r\n    content:\" \";\r\n    border-top:1px solid #FFF;\r\n    border-bottom:3px solid #000;\r\n}<\/pre>\n<p>Preview it here: <a href=\"http:\/\/jsfiddle.net\/2BQ8f\/\">http:\/\/jsfiddle.net\/2BQ8f\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I came across an interesting prospect &#8211; How to emulate a double border using only CSS. This can be achieved with the :before and :after\u00a0pseudo\u00a0selectors. xhtml &lt;div id=&#8221;myDiv&#8221;&gt;Some Text Here&lt;\/div&gt; CSS #myDiv, #myDiv:after { display:block; background:#00f; width:100px; } #myDiv:after &hellip; <a href=\"https:\/\/tier7.net\/blog\/2012\/01\/css-double-border\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6,8,5],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-web-development","tag-css","tag-web-design","tag-xhtml"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/tier7.net\/blog\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tier7.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tier7.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tier7.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tier7.net\/blog\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":4,"href":"https:\/\/tier7.net\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/tier7.net\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/tier7.net\/blog\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tier7.net\/blog\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tier7.net\/blog\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}