{"id":4923,"date":"2026-01-16T18:18:32","date_gmt":"2026-01-16T09:18:32","guid":{"rendered":"https:\/\/dennie.tokyo\/it\/?p=4923"},"modified":"2026-01-16T20:55:23","modified_gmt":"2026-01-16T11:55:23","slug":"%e3%80%90css%e3%80%91%e6%96%87%e5%ad%97%e3%81%ab%e4%b8%8b%e7%b7%9a%e3%82%92%e5%bc%95%e3%81%8f","status":"publish","type":"post","link":"https:\/\/dennie.tokyo\/it\/?p=4923","title":{"rendered":"\u3010CSS\u3011\u6587\u5b57\u306b\u4e0b\u7dda\u3092\u5f15\u304f"},"content":{"rendered":"\n<p>\u6587\u5b57\u306b\u4e0b\u7dda\u3092\u5f15\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h1 class=\"wp-block-heading\">\u6587\u5b57\u306e\u9014\u4e2d\u307e\u3067\u4e0b\u7dda<\/h1>\n\n\n\n<p><strong>\u30b5\u30f3\u30d7\u30eb<\/strong><\/p>\n\n\n\n<style>\n.box-01 {\n  margin-top: 30px;\n}\n\n.sample-01 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-01::after {\n  position: absolute;\n  left: 50%;\n  bottom: -1px;\n  content: ' ';\n  height: 4px;\n  width: 70%;\n  transform: translateX(-50%);\n  background-color: #ffd700;\n}\n\n.sample-02 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-02::after {\n  position: absolute;\n  left: 0;\n  bottom: -1px;\n  content: ' ';\n  height: 4px;\n  width: 70%;\n  background-color: #ffd700;\n}\n\n.sample-03 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-03::after {\n  position: absolute;\n  right: 0;\n  bottom: -1px;\n  content: ' ';\n  height: 4px;\n  width: 70%;\n  background-color: #ffd700;\n}\n<\/style>\n<div class=\"box-01\">\n  <div class=\"sample-01\">HOME<\/div>\n<\/div>\n<div class=\"box-01\">\n  <div class=\"sample-02\">HOME<\/div>\n<\/div>\n<div class=\"box-01\">\n  <div class=\"sample-03\">HOME<\/div>\n<\/div>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;div class=&quot;sample-01&quot;&gt;HOME&lt;\/div&gt;\n&lt;div class=&quot;sample-02&quot;&gt;HOME&lt;\/div&gt;\n&lt;div class=&quot;sample-03&quot;&gt;HOME&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.sample-01 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-01::after {\n  position: absolute;\n  left: 50%;\n  bottom: -1px;\n  content: &#39; &#39;;\n  height: 3px;\n  width: 70%;\n  transform: translateX(-50%);\n  background-color: #ffd700;\n}\n\n.sample-02 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-02::after {\n  position: absolute;\n  left: 0;\n  bottom: -1px;\n  content: &#39; &#39;;\n  height: 3px;\n  width: 70%;\n  background-color: #ffd700;\n}\n\n.sample-03 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-03::after {\n  position: absolute;\n  right: 0;\n  bottom: -1px;\n  content: &#39; &#39;;\n  height: 3px;\n  width: 70%;\n  background-color: #ffd700;\n}<\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u6587\u7ae0\u4e2d\u306e\u8a00\u8449<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u5f37\u8abf\u4e0b\u7dda<\/h2>\n\n\n\n<p>border-bottom \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u7528\u3059\u308b\u3060\u3051\u3067\u3082\u6587\u5b57\u306b\u4e0b\u7dda\u304c\u5f15\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<style>\n.box-border-bottom-01 {\n  margin-top:13px;\n}\n\n.sample-border-bottom-01 {\n  border-bottom: solid 3px #87CEFA;\n}\n\n.sample-border-bottom-02 {\n  border-bottom: dotted 3px orange;\n}\n\n.sample-border-bottom-03 {\n  border-bottom: dashed 1px #87CEFA;\n}\n\n.sample-border-bottom-04 {\n  border-bottom: double 6px orange;\n}\n<\/style>\n<div class=\"box-border-bottom-01\">\u4eca\u65e5\u306e\u5929\u6c17\u306f<span class=\"sample-border-bottom-01\">\u6674\u308c<\/span>\u3067\u3059\uff01\uff01<\/div>\n<div class=\"box-border-bottom-01\">\u4eca\u65e5\u306e\u5929\u6c17\u306f<span class=\"sample-border-bottom-02\">\u6674\u308c<\/span>\u3067\u3059\uff01\uff01<\/div>\n<div class=\"box-border-bottom-01\">\u4eca\u65e5\u306e\u5929\u6c17\u306f<span class=\"sample-border-bottom-03\">\u6674\u308c<\/span>\u3067\u3059\uff01\uff01<\/div>\n<div class=\"box-border-bottom-01\">\u4eca\u65e5\u306e\u5929\u6c17\u306f<span class=\"sample-border-bottom-04\">\u6674\u308c<\/span>\u3067\u3059\uff01\uff01<\/div>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;div&gt;\u4eca\u65e5\u306e\u5929\u6c17\u306f&lt;span class=&quot;sample-01&quot;&gt;\u6674\u308c&lt;\/span&gt;\u3067\u3059\uff01\uff01&lt;\/div&gt;\n&lt;div&gt;\u4eca\u65e5\u306e\u5929\u6c17\u306f&lt;span class=&quot;sample-02&quot;&gt;\u6674\u308c&lt;\/span&gt;\u3067\u3059\uff01\uff01&lt;\/div&gt;\n&lt;div&gt;\u4eca\u65e5\u306e\u5929\u6c17\u306f&lt;span class=&quot;sample-03&quot;&gt;\u6674\u308c&lt;\/span&gt;\u3067\u3059\uff01\uff01&lt;\/div&gt;\n&lt;div&gt;\u4eca\u65e5\u306e\u5929\u6c17\u306f&lt;span class=&quot;sample-04&quot;&gt;\u6674\u308c&lt;\/span&gt;\u3067\u3059\uff01\uff01&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.sample-01 {\n  border-bottom: solid 3px #87CEFA;\n}\n\n.sample-02 {\n  border-bottom: dotted 3px orange;\n}\n\n.sample-03 {\n  border-bottom: dashed 1px #87CEFA;\n}\n\n.sample-04 {\n  border-bottom: double 6px orange;\n}<\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h1>\n\n\n\n<p>\u7279\u306b\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u5b57\u306b\u4e0b\u7dda\u3092\u5f15\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":4723,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4923","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"_links":{"self":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/4923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4923"}],"version-history":[{"count":11,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/4923\/revisions"}],"predecessor-version":[{"id":4935,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/4923\/revisions\/4935"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/media\/4723"}],"wp:attachment":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}