{"id":5243,"date":"2026-04-29T13:39:21","date_gmt":"2026-04-29T04:39:21","guid":{"rendered":"https:\/\/dennie.tokyo\/it\/?p=5243"},"modified":"2026-04-29T13:50:59","modified_gmt":"2026-04-29T04:50:59","slug":"position-absolute-%e3%81%ae-0-%e3%81%a8-100-%e3%81%ae%e9%81%95%e3%81%84","status":"publish","type":"post","link":"https:\/\/dennie.tokyo\/it\/?p=5243","title":{"rendered":"position: absolute \u306e 0 \u3068 100% \u306e\u9055\u3044"},"content":{"rendered":"\n<p>top: 100% \u3068 bottom: 0 \u306e\u6307\u5b9a\u306e\u9055\u3044\u306f\u4f55\u304b\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h1 class=\"wp-block-heading\">position: absolute\u306e\u6982\u8981<\/h1>\n\n\n\n<p>position: absolute \u306f position: relative; \u304b\u3089\u306e\u76f8\u5bfe\u4f4d\u7f6e\u3092\u6c7a\u3081\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<br>\u4f4d\u7f6e\u306ftop\u3001bottom\u3001left\u3001right\u304c\u6307\u5b9a\u51fa\u6765\u3001\u5404\u3005\u306e\u4f4d\u7f6e\u304b\u3089\u3069\u308c\u304f\u3089\u3044\u306e\u8ddd\u96e2\u306b\u3059\u308b\u304b\u3092\u6307\u5b9a\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u6307\u5b9a\u306e\u9055\u3044<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">0\u6307\u5b9a<\/h2>\n\n\n\n<p>0\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u5b50\u8981\u7d20\u306f\u89aa\u8981\u7d20\u5185\u306e\u9685\u306b\u56fa\u5b9a\u3055\u308c\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306f\u3001bottom: 0 \u306e\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&lt;div class=&quot;sample_01&quot;&gt;bottom 0&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-plain\"><code>.sample_01{\n  position: relative;\n  height: 40px;\n  width: 100px;\n  background: #000000;\n  padding: 5px;\n  color: #fff;\n}\n\n.sample_01::before {\n  content: &quot;&quot;;\n  width: 20px;\n  height: 20px;\n  background-color: red;\n  \/* \u4f4d\u7f6e *\/\n  position: absolute;\n  bottom: 0;\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.sample_01{\n  position: relative;\n  height: 50px;\n  width: 100px;\n  background: #000000;\n  padding: 5px;\n  color: #fff;\n}\n\n.sample_01::before {\n  content: \"\";\n  width: 20px;\n  height: 20px;\n  background-color: red;\n  \/* \u4f4d\u7f6e *\/\n  position: absolute;\n  bottom: 0;\n}\n<\/style>\n<div class=\"sample_01\">bottom 0<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">100%\u6307\u5b9a<\/h2>\n\n\n\n<p>0\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u89aa\u8981\u7d20\u5916\u306b\u56fa\u5b9a\u3055\u308c\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306f\u3001top: 100% \u306e\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&lt;div class=&quot;sample_02&quot;&gt;top 100%&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-plain\"><code>.sample_02{\n  position: relative;\n  height: 50px;\n  width: 100px;\n  background: #000000;\n  padding: 5px;\n  color: #fff;\n}\n\n.sample_02::before {\n  content: &quot;&quot;;\n  width: 20px;\n  height: 20px;\n  background-color: red;\n  \/* \u4f4d\u7f6e *\/\n  position: absolute;\n  top: 100%;\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u7d50\u679c<\/strong><\/p>\n\n\n\n<style>\n.sample_02{\n  position: relative;\n  height: 50px;\n  width: 100px;\n  background: #000000;\n  padding: 5px;\n  color: #fff;\n}\n\n.sample_02::before {\n  content: \"\";\n  width: 20px;\n  height: 20px;\n  background-color: red;\n  \/* \u4f4d\u7f6e *\/\n  position: absolute;\n  top: 100%;\n}\n<\/style>\n<div class=\"sample_02\">top 100%<\/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>top: 100% \u3068 bottom: 0 \u306e\u6307\u5b9a\u306e\u9055\u3044\u306f\u4f55\u304b\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u78ba\u8a8d\u3057\u307e\u3057\u305f\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-5243","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\/5243","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=5243"}],"version-history":[{"count":10,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/5243\/revisions"}],"predecessor-version":[{"id":5254,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/5243\/revisions\/5254"}],"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=5243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}