{"id":7176,"date":"2024-11-04T10:16:08","date_gmt":"2024-11-04T10:16:08","guid":{"rendered":"https:\/\/withcode.tech\/media\/?p=7176"},"modified":"2026-10-16T09:30:54","modified_gmt":"2026-10-16T09:30:54","slug":"css-absolute-relative","status":"publish","type":"post","link":"https:\/\/withcode.tech\/media\/css-absolute-relative\/","title":{"rendered":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9"},"content":{"rendered":"\n<!-- withmedia-ketsuron -->\n<!-- snip:absrel-ketsuron -->\n<h2 class=\"wp-block-heading\">\u3053\u306e\u8a18\u4e8b\u306e\u7d50\u8ad6<\/h2>\n\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-01\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-01.webp\" alt=\"\u3053\u306e\u8a18\u4e8b\u306e\u7d50\u8ad6\" class=\"wp-image-26002\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-01.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-01-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-01-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n\n\n<p class=\"wp-block-paragraph\"><strong>position:relative\u3068\u306f\u3001\u8981\u7d20\u3092\u300c\u5143\u306e\u4f4d\u7f6e\u300d\u3092\u57fa\u6e96\u306b\u76f8\u5bfe\u7684\u306b\u305a\u3089\u3059\u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3067\u3001\u8981\u7d20\u306f\u3082\u3068\u306e\u30b9\u30da\u30fc\u30b9\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u79fb\u52d5\u3057\u307e\u3059\u3002\u4e00\u65b9<strong>position:absolute\u306f\u3001\u4f4d\u7f6e\u6307\u5b9a\u3055\u308c\u305f\u89aa\u8981\u7d20\u3092\u57fa\u6e96\u306b\u7d76\u5bfe\u914d\u7f6e\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3067\u3001\u8981\u7d20\u306f\u6587\u66f8\u306e\u901a\u5e38\u30d5\u30ed\u30fc\u304b\u3089\u5916\u308c\u307e\u3059\u3002<strong>relative\u306f\u300c\u57fa\u6e96\u3065\u304f\u308a\u300d\u3001absolute\u306f\u300c\u81ea\u7531\u914d\u7f6e\u300d<\/strong>\u3068\u899a\u3048\u308b\u3068\u4f7f\u3044\u5206\u3051\u304c\u660e\u78ba\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-14.40.37.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u751f\u5f92<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u30da\u30f3\u535a\u58eb\u3001position\u306e absolute \u3068 relative \u304c\u3088\u304f\u5206\u304b\u308a\u307e\u305b\u3093\u3002\u3069\u3046\u4f7f\u3044\u5206\u3051\u308c\u3070\u3044\u3044\u3093\u3067\u3057\u3087\u3046\u304b\uff1f<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-right\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.08.37.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u3075\u3080\u3075\u3080\u3002\u8981\u306f\u300c<strong>\u57fa\u6e96\uff08\u3069\u3053\u3092\u8d77\u70b9\u306b\u7f6e\u304f\u304b\uff09<\/strong>\u300d\u3068\u300c<strong>\u6587\u66f8\u306e\u6d41\u308c\u306b\u5c45\u308b\u304b\/\u5916\u308c\u308b\u304b<\/strong>\u300d\u3058\u3083\u3002\u4eca\u304b\u3089\u8a73\u3057\u304f\u89e3\u8aac\u3059\u308b\u304b\u3089\u3088\u30fc\u304f\u805e\u304f\u3093\u3058\u3083\u305e\u3002<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-14.48.08.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u751f\u5f92<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\uff01\u304a\u9858\u3044\u3057\u307e\u3059\uff01<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<p class=\"wp-block-paragraph\">CSS\u3067\u8981\u7d20\u306e\u914d\u7f6e\u304c\u601d\u3044\u901a\u308a\u306b\u3044\u304b\u306a\u3044\u3001\u305d\u3093\u306a\u60a9\u307f\u3092\u62b1\u3048\u3066\u3044\u307e\u305b\u3093\u304b\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7279\u306b <strong>position: relative<\/strong> \u3068 <strong>absolute<\/strong> \u306e\u9055\u3044\u3084\u4f7f\u3044\u5206\u3051\u304c\u5206\u304b\u3089\u306a\u3044\u3068\u3001\u601d\u3044\u901a\u308a\u306b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u8abf\u6574\u3059\u308b\u306e\u306f\u96e3\u3057\u3044\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u3089\u306e\u57fa\u672c\u3092\u62bc\u3055\u3048\u3066\u6b63\u3057\u304f\u4f7f\u3048\u3070\u3001\u8981\u7d20\u306e\u914d\u7f6e\u306f\u7c21\u5358\u306b\u306a\u308a\u3001\u52b9\u7387\u7684\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u7ba1\u7406\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u3067\u306f\u3001\u5177\u4f53\u7684\u306a\u4f7f\u3044\u65b9\u3068\u5b9f\u4f8b\u3092\u901a\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5fb9\u5e95\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_announce wp-block-paragraph\">\u300c\u5b66\u7fd2\u2192\u53ce\u5165\u300d\u306b\u3064\u306a\u3052\u305f\u53d7\u8b1b\u751f\u306e\u30ea\u30a2\u30eb\u306a\u4f53\u9a13\u8ac7\u3082\u516c\u958b\u4e2d\uff01<br>\u50cd\u304d\u65b9\u3092\u5909\u3048\u305f\u3044\u65b9\u306b\u3082\u97ff\u304f\u30b9\u30c8\u30fc\u30ea\u30fc\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_info wp-block-paragraph\"><strong>O.Y\u3055\u3093<\/strong><br>\u5b50\u80b2\u3066\u3068\u4e21\u7acb\u3067\u304d\u308b\u50cd\u304d\u65b9\u3092\u76ee\u6307\u3057\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u5b66\u7fd2\u3092\u958b\u59cb\u3059\u308b\u3002\u72ec\u5b66\u3067\u306e\u5b66\u7fd2\u306b\u9650\u754c\u3092\u611f\u3058\u3001WithCode\u306e\u526f\u696d\u30b3\u30fc\u30b9\u306e\u53d7\u8b1b\u3092\u6c7a\u610f\u3002\u6700\u7d42\u76ee\u6a19\u304b\u3089\u9006\u7b97\u3057\u305f\u5b66\u7fd2\u8a08\u753b\u306e\u3082\u3068\u30b9\u30ad\u30eb\u3092\u7fd2\u5f97\u3057\u3001\u5352\u696d\u5f8c\u306b\u521d\u6848\u4ef6\u3092\u62c5\u5f53\u3002\u73fe\u5728\u306f\u5b9f\u6848\u4ef6\u30b5\u30dd\u30fc\u30c8\u306e\u3082\u3068\u3001\u8907\u6570\u6848\u4ef6\u3092\u62c5\u5f53\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a73\u3057\u304f\u306f<a href=\"https:\/\/withcode.tech\/media\/interview-10\/\" title=\"\u3053\u3061\u3089\u306e\u8a18\u4e8b\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/05\/\u30a4\u30f3\u30bf\u30d3\u30e5\u30fc-17.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/withcode.tech\/media\/interview-10\/\">\u3010\u526f\u696d\u76ee\u6307\u3059\u30de\u30de\u3055\u3093\u5fc5\u898b\u3011\u30c6\u30c3\u30af\u30a2\u30ab\u30c7\u30df\u30fc\u5352\u696d\u5f8c\u306b\u518d\u5165\u5b66\uff01\u80b2\u5150\u3068\u5b66\u7fd2\u3092\u4e21\u7acb\u3055\u305b\u3066&#8221;\u670810\u4e07\u5186&amp;#&#8230;<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u30da\u30f3\u535a\u58eb\uff01\u4eca\u56de\u306f\u3069\u3093\u306a\u65b9\u304c\u30a4\u30f3\u30bf\u30d3\u30e5\u30fc\u306b\u5fdc\u3058\u3066\u304f\u3060\u3055\u3063\u305f\u3093\u3067\u3059\u304b\uff1f \u3046\u3080\u3002\u4eca\u56de\u306f\u80b2\u5150\u3068\u5b66\u7fd2\u3092\u4e21\u7acb\u3057\u306a\u304c\u3089\u670810\u4e07\u5186\u306e\u526f\u53ce\u5165\u3092\u9054\u6210\u3057\u305f\u30de\u30de\u3055\u3093\u3058\u3083\u3088\u3002\u5b66\u7fd2\u65b9\u6cd5\u3001\u6848&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<h2 class=\"wp-block-heading\">position\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u306f\uff1f5\u3064\u306e\u5024\u3092\u89e3\u8aac<\/h2>\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-02\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-02.webp\" alt=\"position\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u306f\uff1f5\u3064\u306e\u5024\u3092\u89e3\u8aac\" class=\"wp-image-26003\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-02.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-02-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-02-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n\n\n<h3 class=\"wp-block-heading\"><strong>relative\u3068absolute\u306e\u9055\u3044<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">CSS\u306e <strong>position<\/strong> \u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u8981\u7d20\u306e\u914d\u7f6e\u65b9\u6cd5\u3092\u6307\u5b9a\u3059\u308b\u969b\u306b\u91cd\u8981\u306a\u5f79\u5272\u3067\u3059\u3002\u7279\u306b\u3001<strong>relative<\/strong>\u3001<strong>absolute<\/strong> \u306f\u3088\u304f\u4f7f\u308f\u308c\u308b\u5024\u3067\u3001\u305d\u308c\u305e\u308c\u7570\u306a\u308b\u52d5\u4f5c\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>relative<\/strong> \u306f\u3001\u8981\u7d20\u306e\u672c\u6765\u306e\u4f4d\u7f6e\u304b\u3089\u76f8\u5bfe\u7684\u306b\u4f4d\u7f6e\u3092\u8abf\u6574\u3067\u304d\u308b\u30e2\u30fc\u30c9\u3067\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">relative \u306f\u3001\u4ed6\u306e\u8981\u7d20\u306e\u914d\u7f6e\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u305a\u306b\u3001\u8981\u7d20\u306e\u4f4d\u7f6e\u3092\u5fae\u8abf\u6574\u3067\u304d\u307e\u3059\u3002<\/span><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>absolute<\/strong> \u306f\u3001\u8981\u7d20\u3092\u89aa\u8981\u7d20\u3092\u57fa\u6e96\u306b\u7d76\u5bfe\u4f4d\u7f6e\u306b\u914d\u7f6e\u3057\u3001\u89aa\u8981\u7d20\u304c <strong>position: relative<\/strong> \u3092\u6301\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u306e\u4f4d\u7f6e\u304c\u57fa\u6e96\u306b\u306a\u308a\u307e\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">absolute\u3092\u4f7f\u3046\u3068\u3001\u8981\u7d20\u306f\u6587\u66f8\u306e\u6d41\u308c\u304b\u3089\u5916\u308c\u3001\u81ea\u7531\u306a\u4f4d\u7f6e\u306b\u914d\u7f6e\u3067\u304d\u308b<\/span><\/strong>\u305f\u3081\u3001\u8907\u96d1\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306b\u6709\u52b9\u3067\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.09.27.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u5404position\u306e\u52d5\u4f5c\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u3067\u3001\u52b9\u7387\u7684\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u8a2d\u8a08\u304c\u53ef\u80fd\u3058\u3083\u3002<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<p class=\"wp-block-paragraph\">position\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u77e5\u308a\u305f\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/CSS\/position\">CSS\u516c\u5f0f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9-position\u306b\u3064\u3044\u3066<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">position relative\u306e\u4f7f\u3044\u65b9|\u5b9f\u88c5\u4f8b3\u9078<\/h2>\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-03\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-03.webp\" alt=\"position relative\u306e\u4f7f\u3044\u65b9|\u5b9f\u88c5\u4f8b3\u9078\" class=\"wp-image-26004\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-03.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-03-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-03-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.11.23.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u3053\u3053\u3067\u306f\u3001position relative\u306e\u4f7f\u3044\u65b9\u3068\u305d\u306e\u5177\u4f53\u4f8b\u3092\u89e3\u8aac\u3059\u308b\u305e\u3002<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5fae\u8abf\u6574\u3059\u308b<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">relative\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u8981\u7d20\u306e\u5143\u306e\u4f4d\u7f6e\u306f\u305d\u306e\u307e\u307e\u6b8b\u308a\u3001\u8996\u899a\u7684\u306b\u52d5\u3044\u305f\u4f4d\u7f6e\u304c\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<strong><span class=\"swl-marker mark_yellow\">\u8907\u96d1\u306aCSS\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u4e2d\u3067\u3082\u3001\u7279\u5b9a\u306e\u8981\u7d20\u3060\u3051\u3092\u67d4\u8edf\u306b\u8abf\u6574\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd<\/span><\/strong>\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30d5\u30a9\u30fc\u30e0\u3084\u30dc\u30bf\u30f3\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30e1\u30cb\u30e5\u30fc\u306a\u3069\u306e\u8981\u7d20\u3092\u76f8\u5bfe\u7684\u306b\u914d\u7f6e\u3057\u76f4\u3059\u3068\u304d\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u8996\u899a\u7684\u306a\u8abf\u6574\u306b\u4f7f\u3046\u969b\u306b\u306f\u3001<strong>top<\/strong> \u3084 <strong>left<\/strong> \u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u5fae\u8abf\u6574\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"jOgwdvK\" data-pen-title=\"relative-1\" data-user=\"kenkenpyo\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n\n\u00a0\u00a0<span>See the Pen <a href=\"https:\/\/codepen.io\/kenkenpyo\/pen\/jOgwdvK\">\n\n\u00a0\u00a0relative-1<\/a> by kosuke (<a href=\"https:\/\/codepen.io\/kenkenpyo\">@kenkenpyo<\/a>)\n\n\u00a0\u00a0on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n\n<\/p>\n\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n\n\n\n<ul class=\"wp-block-list\">\n<li>.box \u8981\u7d20\u306b <strong>position: relative<\/strong> \u3092\u8a2d\u5b9a\u3057\u3001\u305d\u306e\u8981\u7d20\u3092\u5143\u306e\u4f4d\u7f6e\u304b\u3089 <strong>top: 20px<\/strong> \u3068 <strong>left: 30px<\/strong> \u3067\u76f8\u5bfe\u7684\u306b\u79fb\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>container<\/strong> \u306f\u6587\u66f8\u306e\u6d41\u308c\u306b\u5f93\u3063\u3066\u914d\u7f6e\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u4e2d\u3067 <strong>.box<\/strong> \u306e\u4f4d\u7f6e\u3060\u3051\u304c\u76f8\u5bfe\u7684\u306b\u305a\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.12.07.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u3053\u306e\u3088\u3046\u306b relative \u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u89aa\u8981\u7d20\u3084\u4ed6\u306e\u8981\u7d20\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u305a\u306b\u3001\u500b\u5225\u306b\u8981\u7d20\u306e\u4f4d\u7f6e\u3092\u5fae\u8abf\u6574\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3058\u3083\u3002<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3059\u308b<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8981\u7d20\u306e\u5143\u306e\u4f4d\u7f6e\u3092\u57fa\u6e96\u306b\u52d5\u304d\u3092\u4e0e\u3048\u308b\u3053\u3068\u3067\u3001\u4ed6\u306e\u8981\u7d20\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u305a\u306b\u6ed1\u3089\u304b\u306a\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30dc\u30bf\u30f3\u304c\u30db\u30d0\u30fc\u3055\u308c\u305f\u3068\u304d\u306b\u4e0a\u4e0b\u306b\u52d5\u304f\u3001\u307e\u305f\u306f\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306a\u52b9\u679c\u3092\u4f5c\u308b\u969b\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>position: relative<\/strong> \u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u8981\u7d20\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u81ea\u4f53\u306f\u305d\u306e\u307e\u307e\u7dad\u6301\u3055\u308c\u3001\u52d5\u304d\u3092\u4e0e\u3048\u3066\u3082\u30da\u30fc\u30b8\u5168\u4f53\u306e\u69cb\u9020\u304c\u5d29\u308c\u307e\u305b\u3093\u3002\u3055\u3089\u306b\u3001CSS\u306e <strong>@keyframes<\/strong> \u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u52d5\u304d\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3082\u7c21\u5358\u306b\u5b9f\u88c5\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"OJKgdrx\" data-pen-title=\"Untitled\" data-user=\"kenkenpyo\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n\n\u00a0\u00a0<span>See the Pen <a href=\"https:\/\/codepen.io\/kenkenpyo\/pen\/OJKgdrx\">\n\n\u00a0\u00a0Untitled<\/a> by kosuke (<a href=\"https:\/\/codepen.io\/kenkenpyo\">@kenkenpyo<\/a>)\n\n\u00a0\u00a0on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n\n<\/p>\n\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u3053\u306e\u4f8b\u3067\u306f\u3001 <strong>position: relative<\/strong> \u3092\u4f7f\u3063\u3066\u30dc\u30c3\u30af\u30b9\u304c\u4e0a\u4e0b\u306b\u52d5\u304f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>@keyframes<\/strong> \u3067\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u52d5\u304d\u3092\u6307\u5b9a\u3057\u3001\u30dc\u30c3\u30af\u30b9\u304c\u4e0a\u4e0b\u306b20px\u52d5\u304d\u3001\u5143\u306e\u4f4d\u7f6e\u306b\u623b\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.09.27.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u3053\u306e\u3088\u3046\u306b\u3001position: relative \u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306b\u975e\u5e38\u306b\u6709\u52b9\u3058\u3083\u3002\u4ed6\u306e\u8981\u7d20\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u305a\u306b\u52d5\u304d\u3092\u52a0\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u52d5\u7684\u306a\u30c7\u30b6\u30a4\u30f3\u3092\u3059\u308b\u306e\u306b\u9069\u3057\u3066\u3044\u308b\u305e\u3002<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/withcode.tech\/media\/animation-pyon\/\">CSS\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u300c\u307d\u3088\u3093\u300d\u3068\u52d5\u304b\u3059\uff01\u521d\u5fc3\u8005\u3067\u3082\u3067\u304d\u308b\u5b9f\u88c5\u30ac\u30a4\u30c9<\/a><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-withcode-media wp-block-embed-withcode-media\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/withcode.tech\/media\/animation-pyon\/\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/withcode.tech\/media\/css-animation-rotation\/\">\u3010\u7c21\u5358\uff01\u3011CSS\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u306e\u56de\u8ee2\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u89e3\u8aac<\/a><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-withcode-media wp-block-embed-withcode-media\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/withcode.tech\/media\/css-animation-rotation\/\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">position absolute\u306e\u4f7f\u3044\u65b9|\u30ec\u30a4\u30a2\u30a6\u30c8\u5b9f\u88c5\u6cd5<\/h2>\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-04\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-04.webp\" alt=\"position absolute\u306e\u4f7f\u3044\u65b9|\u30ec\u30a4\u30a2\u30a6\u30c8\u5b9f\u88c5\u6cd5\" class=\"wp-image-26005\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-04.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-04-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-04-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30a2\u30bb\u30c3\u30c8-6@4x-2.png\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u3053\u3053\u3067\u306f\u3001position absolute\u306e\u4f7f\u3044\u65b9\u3068\u5b9f\u7528\u4f8b\u3092\u89e3\u8aac\u3059\u308b\u305e\u3002<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>relative\u3068absolute\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u7528\u3059\u308b<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>position: absolute<\/strong> \u306f\u3001\u901a\u5e38 <strong>position: relative<\/strong> \u3092\u6307\u5b9a\u3055\u308c\u305f\u89aa\u8981\u7d20\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002absolute\u306e\u8981\u7d20\u306f\u3001\u89aa\u8981\u7d20\u3092\u57fa\u6e96\u306b\u3057\u3066\u914d\u7f6e\u304c\u6c7a\u307e\u308b\u305f\u3081\u3001\u89aa\u8981\u7d20\u306b <strong>position: relative<\/strong> \u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u5b50\u8981\u7d20\u306e\u4f4d\u7f6e\u3092\u81ea\u7531\u306b\u8abf\u6574\u3067\u304d\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u67d4\u8edf\u6027\u3092\u9ad8\u3081\u308b\u6709\u52b9\u306a\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001Web\u30da\u30fc\u30b8\u3067\u30d0\u30ca\u30fc\u306e\u4e0a\u306b\u30c6\u30ad\u30b9\u30c8\u3084\u30dc\u30bf\u30f3\u3092\u91cd\u306d\u305f\u3044\u5834\u5408\u3001<strong><span class=\"swl-marker mark_yellow\">\u89aa\u8981\u7d20\u306b relative \u3092\u8a2d\u5b9a\u3057\u3001\u5b50\u8981\u7d20\u306b absolute \u3092\u4f7f\u3046<\/span><\/strong>\u3068\u3001\u30c6\u30ad\u30b9\u30c8\u3084\u30dc\u30bf\u30f3\u3092\u81ea\u7531\u306b\u914d\u7f6e\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u7d44\u307f\u5408\u308f\u305b\u306b\u3088\u3063\u3066\u3001\u4ed6\u306e\u8981\u7d20\u306e\u914d\u7f6e\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3053\u3068\u306a\u304f\u3001\u610f\u56f3\u3057\u305f\u901a\u308a\u306b\u8868\u793a\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u4f8b\u3067\u306f\u3001\u89aa\u8981\u7d20\u306b <strong>position: relative<\/strong> \u3092\u8a2d\u5b9a\u3057\u3001\u5b50\u8981\u7d20\u306e\u753b\u50cf\u3084\u30c6\u30ad\u30b9\u30c8\u3092 <strong>absolute<\/strong> \u3067\u91cd\u306d\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"abeYQjK\" data-pen-title=\"Untitled\" data-user=\"ddwkeakz-the-reactor\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n  <span>See the Pen <a href=\"https:\/\/codepen.io\/ddwkeakz-the-reactor\/pen\/abeYQjK\">\n  Untitled<\/a> by \u305b\u3044\u3084 (<a href=\"https:\/\/codepen.io\/ddwkeakz-the-reactor\">@ddwkeakz-the-reactor<\/a>)\n  on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n<\/p>\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001<strong>.container<\/strong> \u306b <strong>position: relative<\/strong> \u3092\u8a2d\u5b9a\u3057\u3001\u305d\u306e\u4e2d\u306b\u3042\u308b <strong>.overlay-text<\/strong> \u306f <strong>position: absolute<\/strong> \u3067\u3001\u30d0\u30ca\u30fc\u753b\u50cf\u306e\u4e0a\u306b\u81ea\u7531\u306b\u914d\u7f6e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u5177\u4f53\u4f8b<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>position: absolute<\/strong> \u306f\u3001\u8981\u7d20\u3092\u6587\u66f8\u306e\u6d41\u308c\u304b\u3089\u5207\u308a\u96e2\u3057\u3066\u3001\u89aa\u8981\u7d20\u306b\u5bfe\u3057\u3066\u7d76\u5bfe\u7684\u306a\u4f4d\u7f6e\u306b\u914d\u7f6e\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002\u3053\u308c\u3092\u4f7f\u3048\u3070\u3001<strong><span class=\"swl-marker mark_yellow\">\u7279\u5b9a\u306e\u8981\u7d20\u3092\u81ea\u7531\u306b\u914d\u7f6e\u3067\u304d\u3001\u8907\u96d1\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7c21\u5358\u306b\u4f5c\u6210<\/span><\/strong>\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u30012\u3064\u306e\u8981\u7d20\u304c\u4e26\u3093\u3060\u30ec\u30a4\u30a2\u30a6\u30c8\u3084\u8907\u6570\u306e\u91cd\u306a\u308a\u5408\u3063\u305f\u8981\u7d20\u3092\u4f7f\u7528\u3057\u305f\u30c7\u30b6\u30a4\u30f3\u306b\u304a\u3044\u3066\u3001\u7d76\u5bfe\u4f4d\u7f6e\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u8996\u899a\u7684\u306b\u30ea\u30c3\u30c1\u306a\u753b\u9762\u304c\u4f5c\u6210\u53ef\u80fd\u3067\u3059\u3002\u89aa\u8981\u7d20\u306b <strong>position: relative<\/strong> \u3092\u8a2d\u5b9a\u3057\u3001\u305d\u306e\u4e0a\u306b\u5b50\u8981\u7d20\u3092 <strong>position: absolute<\/strong> \u3067\u914d\u7f6e\u3059\u308b\u3053\u3068\u3067\u3001\u89aa\u8981\u7d20\u5185\u3067\u306e\u5b50\u8981\u7d20\u306e\u914d\u7f6e\u304c\u610f\u56f3\u901a\u308a\u306b\u884c\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306b\u3001\u5177\u4f53\u7684\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"jOgwdJp\" data-pen-title=\"relative-4\" data-user=\"kenkenpyo\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n\n\u00a0\u00a0<span>See the Pen <a href=\"https:\/\/codepen.io\/kenkenpyo\/pen\/jOgwdJp\">\n\n\u00a0\u00a0relative-4<\/a> by kosuke (<a href=\"https:\/\/codepen.io\/kenkenpyo\">@kenkenpyo<\/a>)\n\n\u00a0\u00a0on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n\n<\/p>\n\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u3053\u306e\u4f8b\u3067\u306f\u3001\u89aa\u8981\u7d20 <strong>.container<\/strong> \u306b <strong>position: relative<\/strong> \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>.sidebar<\/strong> \u306f <strong>position: absolute<\/strong> \u3067\u914d\u7f6e\u3055\u308c\u3066\u304a\u308a\u3001\u753b\u9762\u306e\u5de6\u5074\u306b\u56fa\u5b9a\u3002<\/li>\n\n\n\n<li><strong>.main-content<\/strong> \u306f <strong>left: 25%<\/strong> \u3067\u914d\u7f6e\u3055\u308c\u3001\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u6a2a\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.11.23.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u3053\u306e\u3088\u3046\u306b\u3001\u7d76\u5bfe\u4f4d\u7f6e\u6307\u5b9a\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u89aa\u8981\u7d20\u306e\u4e2d\u3067\u8981\u7d20\u3092\u81ea\u7531\u306b\u914d\u7f6e\u3067\u304d\u308b\u305f\u3081\u3001\u8907\u96d1\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u52b9\u7387\u7684\u306b\u69cb\u7bc9\u3067\u304d\u308b\u305e\u3002<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\">z-index\u3067\u91cd\u306a\u308a\u9806\u5e8f\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5<\/h2>\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-05\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-05.webp\" alt=\"z-index\u3067\u91cd\u306a\u308a\u9806\u5e8f\u3092\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\" class=\"wp-image-26006\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-05.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-05-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-05-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30a2\u30bb\u30c3\u30c8-6@4x-2.png\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u3053\u3053\u3067\u306f\u3001CSS\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u304a\u3051\u308bz-index\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3059\u308b\u305e\u3002<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>position\u3068z-index\u3067\u8981\u7d20\u3092\u91cd\u306d\u308b<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>z-index<\/strong> \u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u8981\u7d20\u306e\u91cd\u306a\u308a\u9806\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u3001\u7279\u306b<strong>position: relative<\/strong> \u3084 <strong>position: absolute<\/strong> \u3092\u4f7f\u3063\u3066\u8981\u7d20\u3092\u914d\u7f6e\u3057\u305f\u969b\u306b\u3001<strong><span class=\"swl-marker mark_yellow\">\u3069\u306e\u8981\u7d20\u304c\u524d\u9762\u306b\u8868\u793a\u3055\u308c\u3001\u3069\u306e\u8981\u7d20\u304c\u80cc\u9762\u306b\u96a0\u308c\u308b\u304b\u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002z-index \u306e\u6570\u5024\u304c\u5927\u304d\u3044\u307b\u3069\u3001\u305d\u306e\u8981\u7d20\u306f\u524d\u9762\u306b\u8868\u793a\u3055\u308c\u3001\u5c0f\u3055\u3044\u6570\u5024\u306e\u8981\u7d20\u306f\u80cc\u9762\u306b\u914d\u7f6e<\/span><\/strong>\u3055\u308c\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001\u8907\u6570\u306e\u753b\u50cf\u3084\u30c6\u30ad\u30b9\u30c8\u304c\u91cd\u306a\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u3001\u7279\u5b9a\u306e\u8981\u7d20\u3092\u524d\u9762\u306b\u8868\u793a\u3057\u305f\u3044\u5834\u5408\u306b <strong>z-index<\/strong> \u3092\u5229\u7528\u3057\u307e\u3059\u3002\u901a\u5e38\u3001\u89aa\u8981\u7d20\u306b <strong>position: relative<\/strong> \u3092\u8a2d\u5b9a\u3057\u3001\u305d\u306e\u4e2d\u306e\u5b50\u8981\u7d20\u306b <strong>z-index<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u671f\u5f85\u901a\u308a\u306e\u30ec\u30a4\u30e4\u30fc\u914d\u7f6e\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"GRVEzLE\" data-pen-title=\"relative-5\" data-user=\"kenkenpyo\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n\n\u00a0\u00a0<span>See the Pen <a href=\"https:\/\/codepen.io\/kenkenpyo\/pen\/GRVEzLE\">\n\n\u00a0\u00a0relative-5<\/a> by kosuke (<a href=\"https:\/\/codepen.io\/kenkenpyo\">@kenkenpyo<\/a>)\n\n\u00a0\u00a0on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n\n<\/p>\n\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>.container<\/strong> \u8981\u7d20\u306b <strong>position: relative<\/strong> \u3092\u8a2d\u5b9a\u3057\u3001\u5b50\u8981\u7d20\u3092 <strong>position: absolute<\/strong> \u3067\u81ea\u7531\u306b\u914d\u7f6e\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>z-index<\/strong> \u3092\u4f7f\u7528\u3057\u3066\u3001<strong>.box1<\/strong> \u3092\u6700\u80cc\u9762\u3001<strong>.box3<\/strong> \u3092\u6700\u524d\u9762\u306b\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">position\u304c\u52b9\u304b\u306a\u3044\u539f\u56e0\u306f\uff1f\u3088\u304f\u3042\u308b\u30df\u30b95\u3064\u3068\u5bfe\u51e6\u6cd5<\/h2>\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-06\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-06.webp\" alt=\"position\u304c\u52b9\u304b\u306a\u3044\u539f\u56e0\u306f\uff1f\u3088\u304f\u3042\u308b\u30df\u30b95\u3064\u3068\u5bfe\u51e6\u6cd5\" class=\"wp-image-26007\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-06.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-06-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-06-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.13.05.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u3053\u3053\u3067\u306f\u3001position\u304c\u52b9\u304b\u306a\u3044\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5\u3092\u89e3\u8aac\u3059\u308b\u305e\u3002<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89aa\u8981\u7d20\u306bposition\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>position: absolute<\/strong> \u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u304d\u3001\u671f\u5f85\u901a\u308a\u306b\u8981\u7d20\u304c\u914d\u7f6e\u3055\u308c\u306a\u3044\u5834\u5408\u3001\u305d\u306e\u539f\u56e0\u306f<strong><span class=\"swl-marker mark_yellow\">\u89aa\u8981\u7d20\u306b position: relative \u307e\u305f\u306f position: absolute \u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u591a\u3044<\/span><\/strong>\u3067\u3059\u3002\u7d76\u5bfe\u914d\u7f6e\u306e\u8981\u7d20\uff08<strong>absolute<\/strong>\uff09\u306f\u3001\u6700\u3082\u8fd1\u3044\u89aa\u8981\u7d20\u306e <strong>position<\/strong> \u30d7\u30ed\u30d1\u30c6\u30a3\u304c <strong>relative<\/strong> \u307e\u305f\u306f <strong>absolute<\/strong> \u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u306b\u3057\u3066\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3082\u3057\u89aa\u8981\u7d20\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e <strong>position: static<\/strong> \u306e\u307e\u307e\u3060\u3068\u3001\u753b\u9762\u5168\u4f53\u3092\u57fa\u6e96\u306b\u914d\u7f6e\u3055\u308c\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u601d\u3044\u901a\u308a\u306b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5bfe\u51e6\u6cd5\uff1a\u89aa\u8981\u7d20\u306b <strong>position: relative<\/strong> \u3092\u8a2d\u5b9a<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u89aa\u8981\u7d20\u306bposition: relative\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3044\u5834\u5408\uff1a<\/p>\n\n\n\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"eYqRxqa\" data-pen-title=\"relative-6\" data-user=\"kenkenpyo\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n\n\u00a0\u00a0<span>See the Pen <a href=\"https:\/\/codepen.io\/kenkenpyo\/pen\/eYqRxqa\">\n\n\u00a0\u00a0relative-6<\/a> by kosuke (<a href=\"https:\/\/codepen.io\/kenkenpyo\">@kenkenpyo<\/a>)\n\n\u00a0\u00a0on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n\n<\/p>\n\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306b\u5b50\u8981\u7d20\u3067\u4f4d\u7f6e\u3092\u6307\u5b9a\u3057\u3066\u307e\u3059\u304c\u3001\u89aa\u8981\u7d20\u304b\u3089\u96e2\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u89aa\u8981\u7d20\u306bposition: relative\u3092\u8a2d\u5b9a\u3057\u305f\u5834\u5408\uff1a<\/p>\n\n\n\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"yLmXwBZ\" data-pen-title=\"relative-7\" data-user=\"kenkenpyo\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n\n\u00a0\u00a0<span>See the Pen <a href=\"https:\/\/codepen.io\/kenkenpyo\/pen\/yLmXwBZ\">\n\n\u00a0\u00a0relative-7<\/a> by kosuke (<a href=\"https:\/\/codepen.io\/kenkenpyo\">@kenkenpyo<\/a>)\n\n\u00a0\u00a0on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n\n<\/p>\n\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\">\u89aa\u8981\u7d20\u306b <strong>position: relative<\/strong> \u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u5b50\u8981\u7d20\u306e <strong>position: absolute<\/strong> \u306f\u89aa\u8981\u7d20\u306e\u4f4d\u7f6e\u3092\u57fa\u6e96\u306b\u3057\u3066\u914d\u7f6e\u3055\u308c\u3001\u610f\u56f3\u901a\u308a\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>overflow: hidden \u304c\u89aa\u8981\u7d20\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>overflow: hidden<\/strong> \u306f\u3001\u89aa\u8981\u7d20\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u306f\u307f\u51fa\u3057\u305f\u3068\u304d\u306b\u3001\u306f\u307f\u51fa\u3057\u305f\u90e8\u5206\u3092\u8868\u793a\u3057\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002\u3053\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3068\u3001<strong><span class=\"swl-marker mark_yellow\">position: absolute \u3084 relative \u3092\u4f7f\u3063\u3066\u8981\u7d20\u3092\u81ea\u7531\u306b\u914d\u7f6e\u3057\u3066\u3082\u3001\u89aa\u8981\u7d20\u306e\u5883\u754c\u5916\u306b\u51fa\u305f\u90e8\u5206\u306f\u96a0\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/span><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001\u30d0\u30ca\u30fc\u753b\u50cf\u306e\u4e0a\u306b\u30dc\u30bf\u30f3\u3084\u30c6\u30ad\u30b9\u30c8\u3092 <strong>absolute<\/strong> \u3067\u914d\u7f6e\u3057\u3066\u3001\u89aa\u8981\u7d20\u3092\u8d85\u3048\u3066\u8868\u793a\u3055\u305b\u305f\u3044\u3068\u304d\u306b\u3001<strong>overflow: hidden<\/strong> \u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3001\u30dc\u30bf\u30f3\u3084\u30c6\u30ad\u30b9\u30c8\u304c\u4e00\u90e8\u898b\u3048\u306a\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5bfe\u51e6\u6cd5\uff1a<strong>overflow: visible<\/strong> \u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u3001\u306f\u307f\u51fa\u3057\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8868\u793a\u3055\u305b\u308b<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>overflow: hidden\u306e\u5834\u5408<\/strong><\/p>\n\n\n\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"GRVEegM\" data-pen-title=\"relative-8\" data-user=\"kenkenpyo\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n\n\u00a0\u00a0<span>See the Pen <a href=\"https:\/\/codepen.io\/kenkenpyo\/pen\/GRVEegM\">\n\n\u00a0\u00a0relative-8<\/a> by kosuke (<a href=\"https:\/\/codepen.io\/kenkenpyo\">@kenkenpyo<\/a>)\n\n\u00a0\u00a0on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n\n<\/p>\n\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>overflow: visible\u306e\u5834\u5408<\/strong><\/p>\n\n\n\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"ExqXMja\" data-pen-title=\"relative-9\" data-user=\"kenkenpyo\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n\n\u00a0\u00a0<span>See the Pen <a href=\"https:\/\/codepen.io\/kenkenpyo\/pen\/ExqXMja\">\n\n\u00a0\u00a0relative-9<\/a> by kosuke (<a href=\"https:\/\/codepen.io\/kenkenpyo\">@kenkenpyo<\/a>)\n\n\u00a0\u00a0on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n\n<\/p>\n\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.09.27.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u3053\u306e\u3088\u3046\u306bvisible\u306b\u3059\u308b\u3053\u3068\u3067\u8868\u793a\u3067\u304d\u308b\u3002\u306a\u304a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3067\u306foverflow\u30d7\u30ed\u30d1\u30c6\u30a3\u306fvisible\u3058\u3083\u3002overflow\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3067\u671f\u5f85\u901a\u308a\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u306a\u308b\u305e\u3002<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>z-index\u5024\u3068\u7af6\u5408\u3057\u3066\u3044\u308b<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>z-index<\/strong> \u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u8981\u7d20\u306e\u91cd\u306a\u308a\u9806\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u304c\u3001<strong><span class=\"swl-marker mark_yellow\">\u8907\u6570\u306e\u8981\u7d20\u3067 z-index \u306e\u5024\u304c\u7af6\u5408\u3057\u3066\u3044\u308b\u3068\u3001\u610f\u56f3\u3057\u305f\u9806\u756a\u3067\u8981\u7d20\u304c\u8868\u793a\u3055\u308c\u306a\u3044<\/span><\/strong>\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u3001\u7570\u306a\u308b <strong>position<\/strong> \u306e\u8a2d\u5b9a\u304c\u7d44\u307f\u5408\u308f\u3055\u308b\u3068\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001\u8907\u6570\u306e\u8981\u7d20\u306b <strong>position: absolute<\/strong> \u3092\u8a2d\u5b9a\u3057\u3001\u305d\u308c\u305e\u308c\u306b\u7570\u306a\u308b <strong>z-index<\/strong> \u306e\u5024\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u6b63\u3057\u304f\u524d\u9762\u3084\u80cc\u9762\u306b\u8868\u793a\u3055\u308c\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u3001\u8981\u7d20\u304c\u5c5e\u3059\u308b <strong>stacking context<\/strong>\uff08\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\uff09\u306b\u3088\u308b\u3082\u306e\u304c\u539f\u56e0\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306f\u3001Web\u30da\u30fc\u30b8\u3067<strong><span class=\"swl-marker mark_yellow\">\u300c\u3069\u306e\u8981\u7d20\u304c\u3069\u306e\u8981\u7d20\u306e\u524d\u306b\u8868\u793a\u3055\u308c\u308b\u304b\u300d\u3092\u6c7a\u3081\u308b\u4ed5\u7d44\u307f<\/span><\/strong>\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u753b\u50cf\u3084\u30dc\u30bf\u30f3\u304c\u3069\u306e\u9806\u756a\u3067\u91cd\u306a\u3063\u3066\u8868\u793a\u3055\u308c\u308b\u304b\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u4f7f\u3044\u3001\u7279\u5b9a\u306e\u8981\u7d20\u304c\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u4f5c\u308b\u3068\u3001\u305d\u306e\u4e2d\u306b\u3042\u308b\u8981\u7d20\u306f\u3001\u5916\u5074\u306e\u8981\u7d20\u3068\u5225\u306b\u91cd\u306a\u308a\u9806\u3092\u6301\u3064\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.09.27.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306frelative\u3001absolute\u3001fixed\u306a\u3069\u3092\u4f7f\u7528\u3059\u308b\u3068\u4f5c\u6210\u3055\u308c\u308b\u3002\u89aa\u8981\u7d20\u304c\u65b0\u3057\u3044\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u305f\u5834\u5408\u3001\u5b50\u8981\u7d20\u306e z-index \u304c\u52b9\u304b\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u306e\u3058\u3083\u3002<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<h4 class=\"wp-block-heading\">\u5bfe\u51e6\u6cd5\uff1a<strong>z-index<\/strong> \u306e\u5024\u304c\u610f\u56f3\u901a\u308a\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/h4>\n\n\n\n<p class=\"codepen\" data-height=\"300\" data-default-tab=\"html,result\" data-slug-hash=\"vYoZPGZ\" data-pen-title=\"relative-10\" data-user=\"kenkenpyo\" style=\"height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;\">\n\n\u00a0\u00a0<span>See the Pen <a href=\"https:\/\/codepen.io\/kenkenpyo\/pen\/vYoZPGZ\">\n\n\u00a0\u00a0relative-10<\/a> by kosuke (<a href=\"https:\/\/codepen.io\/kenkenpyo\">@kenkenpyo<\/a>)\n\n\u00a0\u00a0on <a href=\"https:\/\/codepen.io\">CodePen<\/a>.<\/span>\n\n<\/p>\n\n<script async src=\"https:\/\/cpwebassets.codepen.io\/assets\/embed\/ei.js\"><\/script>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>.container<\/strong> \u8981\u7d20\u306f <strong>position: relative<\/strong> \u3092\u8a2d\u5b9a\u3057\u3066\u65b0\u3057\u3044\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>z-index<\/strong> \u3092\u6b63\u3057\u304f\u8a2d\u5b9a\u3057\u3001<strong>.box2<\/strong> \u304c <strong>.box1<\/strong> \u3088\u308a\u524d\u9762\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306b\u3001<strong>z-index<\/strong> \u3068\u30b9\u30bf\u30c3\u30ad\u30f3\u30b0\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u7406\u89e3\u3057\u9069\u5207\u306b\u7ba1\u7406\u3059\u308b\u3053\u3068\u3067\u3001\u8981\u7d20\u306e\u91cd\u306a\u308a\u9806\u3092\u610f\u56f3\u901a\u308a\u306b\u5236\u5fa1\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u9ad8\u3055\u3084\u5e45\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>position<\/strong> \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u3063\u3066\u8981\u7d20\u3092\u914d\u7f6e\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001\u8981\u7d20\u304c\u6b63\u3057\u304f\u8868\u793a\u3055\u308c\u306a\u3044\u5834\u5408\u3001\u9ad8\u3055\u3084\u5e45\u306e\u6307\u5b9a\u304c\u6b20\u3051\u3066\u3044\u308b\u3053\u3068\u304c\u8003\u3048\u3089\u308c\u3001<strong><span class=\"swl-marker mark_yellow\">\u7279\u306b\u89aa\u8981\u7d20\u3084\u5b50\u8981\u7d20\u306bwidth \u3084 height \u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u3001\u8981\u7d20\u304c\u610f\u56f3\u3057\u306a\u3044\u5f62\u3067\u8868\u793a\u3055\u308c\u305f\u308a\u3001\u914d\u7f6e\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001<strong>position: absolute<\/strong> \u3092\u4f7f\u3063\u3066\u8981\u7d20\u3092\u89aa\u8981\u7d20\u306b\u5bfe\u3057\u3066\u914d\u7f6e\u3057\u3088\u3046\u3068\u3059\u308b\u969b\u306b\u3001\u89aa\u8981\u7d20\u306e\u9ad8\u3055\u3084\u5e45\u304c\u81ea\u52d5\u3067\u8a08\u7b97\u3055\u308c\u308b\u3068\u3001\u305d\u306e\u914d\u7f6e\u304c\u601d\u3044\u901a\u308a\u306b\u3044\u304b\u306a\u3044\u3053\u3068\u3082\u591a\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5bfe\u51e6\u6cd5\uff1a\u89aa\u8981\u7d20\u3068\u5b50\u8981\u7d20\u306e <strong>width<\/strong> \u3084 <strong>height<\/strong> \u3092\u660e\u78ba\u306b\u6307\u5b9a\u3059\u308b\u3002<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u7279\u306b\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3\u306e\u5834\u5408\u306f\u3001\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\u3084 <strong>vw<\/strong>\u3001<strong>vh<\/strong> \u306a\u3069\u306e\u5358\u4f4d\u3092\u6d3b\u7528\u3057\u3001\u67d4\u8edf\u306b\u9ad8\u3055\u3068\u5e45\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-14.48.08.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u751f\u5f92<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u30da\u30f3\u535a\u58eb\uff01position\u306eabsolute\u3068relative\u306e\u9055\u3044\u3001\u3088\u304f\u308f\u304b\u308a\u307e\u3057\u305f\uff01<br>\u975e\u5e38\u306b\u308f\u304b\u308a\u3084\u3059\u304b\u3063\u305f\u3067\u3059\uff01<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-right\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.12.07.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u30da\u30f3\u535a\u58eb<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u305d\u3046\u8a00\u3063\u3066\u304f\u308c\u3066\u5b09\u3057\u3044\u9650\u308a\u3058\u3083\uff01absolute \u306f\u201c\u89aa\u3092\u57fa\u6e96\u306b\u7f6e\u304f\u201d\u3001relative \u306f\u201c\u305d\u306e\u5834\u306b\u3044\u306a\u304c\u3089\u898b\u305f\u76ee\u3060\u3051\u30ba\u30e9\u3059\u201d\u3002\u305d\u3057\u3066\u89aa\u306b <code>position: relative;<\/code> \u3092\u4ed8\u3051\u308b\u306e\u304c\u809d\u3058\u3083\u305e\uff01<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__icon -square\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2025\/06\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-06-15-15.06.05.jpg\" alt=\"\" class=\"c-balloon__iconImg\" width=\"80px\" height=\"80px\"><span class=\"c-balloon__iconName\">\u751f\u5f92<\/span><\/div><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p><strong>\u65e9\u901f\u81ea\u5206\u306e\u30da\u30fc\u30b8\u3067\u8a66\u3057\u3066\u307f\u307e\u3059\u3002\u30da\u30f3\u535a\u58eb\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\uff01<\/strong><\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\">position: absolute\u306e\u5b9f\u88c5\u4f8b3\u9078\uff08\u4e2d\u592e\u5bc4\u305b\u30fb\u30d0\u30c3\u30b8\u30fb\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\uff09<\/h2>\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-07\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-07.webp\" alt=\"position: absolute\u306e\u5b9f\u88c5\u4f8b3\u9078\uff08\u4e2d\u592e\u5bc4\u305b\u30fb\u30d0\u30c3\u30b8\u30fb\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\uff09\" class=\"wp-image-26008\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-07.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-07-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-07-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n\n\n\n<p class=\"wp-block-paragraph\"><code>position: absolute<\/code>\u306f\u3001\u89aa\u8981\u7d20\u306b<code>position: relative<\/code>\u3092\u6307\u5b9a\u3057\u305f\u3046\u3048\u3067\u4f7f\u3046\u306e\u304c\u57fa\u672c\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u5b9f\u52d9\u3067\u983b\u51fa\u3059\u308b3\u3064\u306e\u914d\u7f6e\u30d1\u30bf\u30fc\u30f3\u3092\u3001\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u30b3\u30fc\u30c9\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2460 \u8981\u7d20\u3092\u4e2d\u592e\u306b\u3074\u3063\u305f\u308a\u914d\u7f6e\u3059\u308b<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.parent { position: relative; }\n.child {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u2461 \u30a2\u30a4\u30b3\u30f3\u306b\u901a\u77e5\u30d0\u30c3\u30b8\u3092\u91cd\u306d\u308b<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.icon { position: relative; }\n.badge {\n  position: absolute;\n  top: -6px;\n  right: -6px;\n  background: #e53935;\n  color: #fff;\n  border-radius: 50%;\n  padding: 2px 6px;\n  font-size: 12px;\n}<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u2462 \u753b\u50cf\u306e\u4e0a\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u91cd\u306d\u308b\uff08\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\uff09<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.hero { position: relative; }\n.hero__text {\n  position: absolute;\n  bottom: 20px;\n  left: 20px;\n  color: #fff;\n}<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3044\u305a\u308c\u3082\u300c\u89aa\u306b<code>relative<\/code>\uff0f\u5b50\u306b<code>absolute<\/code>\u300d\u304c\u30bb\u30c3\u30c8\u3067\u3059\u3002\u89aa\u3078\u306e\u6307\u5b9a\u3092\u5fd8\u308c\u308b\u3068\u3001\u3088\u308a\u5916\u5074\u306e\u8981\u7d20\u3084\u30da\u30fc\u30b8\u5168\u4f53\u3092\u57fa\u6e96\u306b\u914d\u7f6e\u3055\u308c\u3001\u610f\u56f3\u3057\u306a\u3044\u4f4d\u7f6e\u306b\u98db\u3093\u3067\u3057\u307e\u3044\u307e\u3059\uff08\u8a73\u3057\u304f\u306f\u524d\u8ff0\u306e\u300eposition\u304c\u52b9\u304b\u306a\u3044\u539f\u56e0\u300f\u3092\u53c2\u7167\uff09\u3002<\/p>\n\n\n\n\n\n<!-- addon:7176-v1 -->\n<h2 class=\"wp-block-heading\">position 5\u3064\u306e\u5024 \u65e9\u898b\u8868\uff5cstatic \/ relative \/ absolute \/ fixed \/ sticky \u306e\u9055\u3044<\/h2>\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-08\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-08.webp\" alt=\"position 5\u3064\u306e\u5024 \u65e9\u898b\u8868\uff5cstatic \/ relative \/ absolute \/ fixed \/ sticky \u306e\u9055\u3044\" class=\"wp-image-26009\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-08.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-08-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-08-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n<p>\u300c\u3069\u306eposition\u3092\u4f7f\u3048\u3070\u3044\u3044\uff1f\u300d\u3068\u8ff7\u3063\u305f\u3068\u304d\u306e\u65e9\u898b\u8868\u3067\u3059\u3002<strong>\u57fa\u6e96\u306b\u306a\u308b\u8981\u7d20<\/strong>\u3068<strong>\u5143\u306e\u30b9\u30da\u30fc\u30b9\u3092\u7a7a\u3051\u308b\u304b<\/strong>\u3067\u899a\u3048\u308b\u3068\u4f7f\u3044\u5206\u3051\u304c\u4e00\u6c17\u306b\u30e9\u30af\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u5024<\/th><th>\u914d\u7f6e\u306e\u57fa\u6e96<\/th><th>\u30b9\u30da\u30fc\u30b9\u3092\u7a7a\u3051\u308b?<\/th><th>\u4e3b\u306a\u7528\u9014<\/th><\/tr><\/thead><tbody><tr><td>static<\/td><td>\u901a\u5e38\u306e\u6d41\u308c\uff08\u521d\u671f\u5024\uff09<\/td><td>\u7a7a\u3051\u308b<\/td><td>\u6307\u5b9a\u306a\u3057\u306e\u6a19\u6e96\u72b6\u614b<\/td><\/tr><tr><td>relative<\/td><td>\u5143\u306e\u4f4d\u7f6e<\/td><td>\u7a7a\u3051\u308b<\/td><td>absolute\u306e\u57fa\u6e96\u30fb\u5fae\u8abf\u6574<\/td><\/tr><tr><td>absolute<\/td><td>\u89aa\u306erelative<\/td><td>\u7a7a\u3051\u306a\u3044<\/td><td>\u30d0\u30c3\u30b8\u30fb\u91cd\u306d\u914d\u7f6e<\/td><\/tr><tr><td>fixed<\/td><td>\u30d6\u30e9\u30a6\u30b6\u753b\u9762<\/td><td>\u7a7a\u3051\u306a\u3044<\/td><td>\u8ffd\u5f93\u30d8\u30c3\u30c0\u30fc\u30fb\u623b\u308b\u30dc\u30bf\u30f3<\/td><\/tr><tr><td>sticky<\/td><td>\u30b9\u30af\u30ed\u30fc\u30eb\u4f4d\u7f6e<\/td><td>\u7a7a\u3051\u308b<\/td><td>\u30b9\u30af\u30ed\u30fc\u30eb\u8ffd\u5f93\u898b\u51fa\u3057<\/td><\/tr><\/tbody><\/table><\/figure>\n<p>\u5b9f\u52d9\u3067\u3088\u304f\u4f7f\u3046\u7d44\u307f\u5408\u308f\u305b\u3092\u307e\u3068\u3081\u308b\u3068\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<code>absolute<\/code>\u306f\u5fc5\u305a\u89aa\u306b<code>relative<\/code>\u3092\u4ed8\u3051\u308b\u306e\u304c\u9244\u5247\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.parent { position: relative; }      \/* \u57fa\u6e96\u306b\u306a\u308b\u89aa *\/\n.badge  { position: absolute; top: 8px; right: 8px; }  \/* \u89aa\u306e\u53f3\u4e0a\u3078 *\/\n.header { position: fixed;  top: 0; width: 100%; }     \/* \u753b\u9762\u4e0a\u90e8\u306b\u56fa\u5b9a *\/\n.nav    { position: sticky; top: 0; }                  \/* \u8ffd\u5f93\u898b\u51fa\u3057 *\/<\/code><\/pre><\/div>\n\n<h2 class=\"wp-block-heading\"><strong>\u307e\u3068\u3081\uff1aposition relative\u3068absolute\u306e\u4f7f\u3044\u5206\u3051<\/strong><\/h2>\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-09\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-09.webp\" alt=\"\u307e\u3068\u3081\uff1aposition relative\u3068absolute\u306e\u4f7f\u3044\u5206\u3051\" class=\"wp-image-26010\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-09.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-09-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-09-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u3067\u306f\u3001CSS\u306eposition\u306eabsolute\u3068relative\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CSS\u306eposition\u30d7\u30ed\u30d1\u30c6\u30a3 \u306f\u3001\u8981\u7d20\u3092\u81ea\u7531\u306b\u30ec\u30a4\u30a2\u30a6\u30c8\u3057\u3001\u4ed6\u306e\u8981\u7d20\u3068\u5e72\u6e09\u3057\u306a\u3044\u3088\u3046\u306b\u914d\u7f6e\u3059\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8981\u70b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-big_icon_point wp-block-paragraph\"><strong>relative\u306e\u7279\u5fb4<\/strong><br>\u8981\u7d20\u81ea\u8eab\u306e\u5143\u306e\u4f4d\u7f6e\u3092\u57fa\u6e96\u306b\u3057\u3066\u3001\u4e0a\u4e0b\u5de6\u53f3\u3078\u4f4d\u7f6e\u3092\u5fae\u8abf\u6574\u3067\u304d\u308b\u3002<br><br><strong>absolute\u306e\u7279\u5fb4<\/strong><br>\u89aa\u8981\u7d20 \u3092\u57fa\u6e96\u306b\u3057\u3066\u8981\u7d20\u3092\u6b63\u78ba\u306b\u914d\u7f6e\u53ef\u80fd\u3002<br>\u3088\u308a\u81ea\u7531\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u308b\u306e\u306b\u5f79\u7acb\u3064\u3002<br><br><strong>z-index\u3068\u306e\u7d44\u307f\u5408\u308f\u305b<\/strong><br>\u8981\u7d20\u306e \u91cd\u306a\u308a\u9806\u3092\u5236\u5fa1 \u3067\u304d\u308b\u3002<br>\u8907\u96d1\u306a\u30c7\u30b6\u30a4\u30f3\u3084\u91cd\u306d\u5408\u308f\u305b\u304c\u5fc5\u8981\u306a\u5834\u5408\u306b\u52b9\u679c\u7684\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3057\u304b\u3057\u3001position\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3046\u307e\u304f\u52b9\u304b\u306a\u3044\u5834\u5408\u3082\u3042\u308b\u305f\u3081\u3001\u305d\u306e\u969b\u306f\u4eca\u56de\u89e3\u8aac\u3057\u305f\u539f\u56e0\u3068\u5bfe\u51e6\u6cd5\u3092\u53c2\u8003\u306b\u3001<strong><span class=\"swl-marker mark_yellow\">\u8981\u7d20\u306e\u30b9\u30bf\u30a4\u30eb\u8a2d\u5b9a\u3092\u898b\u76f4\u3059\u3053\u3068\u304c\u5927\u5207<\/span><\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CSS\u306e\u57fa\u672c\u3092\u62bc\u3055\u3048\u3001\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u8a66\u884c\u932f\u8aa4\u3059\u308b\u3053\u3068\u304c\u3001\u6700\u9069\u306a\u30c7\u30b6\u30a4\u30f3\u306e\u5b9f\u73fe\u306b\u3064\u306a\u304c\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- withmedia-related -->\n<h2 class=\"wp-block-heading\">\u95a2\u9023\u8a18\u4e8b<\/h2>\n\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-10\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-10.webp\" alt=\"\u95a2\u9023\u8a18\u4e8b\" class=\"wp-image-26011\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-10.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-10-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-10-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/withcode.tech\/media\/css-painting-api-guide\/\">CSS Painting API\u5b8c\u5168\u30ac\u30a4\u30c9\uff5cHoudini PaintWorklet\u30fb\u30ab\u30b9\u30bf\u30e0\u80cc\u666f\u30fbCSS @property\u30fb\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30fbSVG\u6bd4\u8f03\u30fbVite\u30d0\u30f3\u30c9\u30eb\u307e\u3067\u5fb9\u5e95\u89e3\u8aac<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/tailwind-css-design-system\/\">\u3010\u5b9f\u8df5\u30ac\u30a4\u30c9\u3011Tailwind CSS\u30c7\u30b6\u30a4\u30f3\u30b7\u30b9\u30c6\u30e0\u904b\u7528\u306e\u5b8c\u5168\u30de\u30cb\u30e5\u30a2\u30eb\uff01\u69cb\u7bc9\u304b\u3089\u904b\u7528\u307e\u3067\u5b9f\u88c5\u4f8b\u3092\u8e0f\u307e\u3048\u3066\u8a73\u3057\u304f\u89e3\u8aac<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-darkmode\/\">CSS\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u5b9f\u88c5\u306e\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u8a2d\u8a08\u304b\u3089\u5bfe\u5fdc\u307e\u3067<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-containercueries\/\">CSS\u30b3\u30f3\u30c6\u30ca\u30af\u30a8\u30ea\u5b9f\u88c5\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u5b9f\u6848\u4ef6\u5bfe\u5fdc2026\u5e74\u7248<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/jamstackform-explanation\/\">Jamstack\u30d5\u30a9\u30fc\u30e0\u51e6\u7406\u30102026\u5e74\u7248\u3011\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u5b9f\u88c5\u5b8c\u5168\u30ac\u30a4\u30c9<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- withmedia-references -->\n<h2 class=\"wp-block-heading\">\u53c2\u8003\u30ea\u30f3\u30af\uff08\u516c\u5f0f\u30fb\u4e00\u6b21\u60c5\u5831\uff09<\/h2>\n\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-11\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-11.webp\" alt=\"\u53c2\u8003\u30ea\u30f3\u30af\uff08\u516c\u5f0f\u30fb\u4e00\u6b21\u60c5\u5831\uff09\" class=\"wp-image-26012\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-11.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-11-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-11-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/CSS\" target=\"_blank\" rel=\"noopener noreferrer\">MDN Web Docs \u2014 CSS<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<!-- withmedia-faq -->\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u8cea\u554f\uff08FAQ\uff09<\/h2>\n\n\n<figure class=\"wp-block-image size-large withmedia-access-priority-next3\" data-withmedia-image=\"withmedia-next3-7176-h2-12\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-12.webp\" alt=\"\u3088\u304f\u3042\u308b\u8cea\u554f\uff08FAQ\uff09\" class=\"wp-image-26013\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-12.webp 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-12-768x432.webp 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-absolute-relative-h2-12-1536x864.webp 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n\n\n\n<h3 class=\"wp-block-heading\">Q1. position relative\u3068absolute\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n\n\n<p class=\"wp-block-paragraph\"><strong>A.<\/strong> relative\u306f\u8981\u7d20\u306e\u672c\u6765\u306e\u4f4d\u7f6e\u3092\u57fa\u6e96\u306b\u76f8\u5bfe\u7684\u306b\u4f4d\u7f6e\u3092\u8abf\u6574\u3067\u304d\u3001\u4ed6\u306e\u8981\u7d20\u306e\u914d\u7f6e\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u305b\u3093\u3002absolute\u306f\u8981\u7d20\u3092\u6587\u66f8\u306e\u6d41\u308c\u304b\u3089\u5916\u3057\u3001\u89aa\u8981\u7d20\u3092\u57fa\u6e96\u306b\u7d76\u5bfe\u7684\u306a\u4f4d\u7f6e\u3078\u81ea\u7531\u306b\u914d\u7f6e\u3067\u304d\u307e\u3059\u3002relative\u306f\u300c\u305d\u306e\u5834\u306b\u3044\u306a\u304c\u3089\u898b\u305f\u76ee\u3060\u3051\u305a\u3089\u3059\u300d\u3001absolute\u306f\u300c\u89aa\u3092\u57fa\u6e96\u306b\u7f6e\u304f\u300d\u3068\u7406\u89e3\u3059\u308b\u3068\u5206\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q2. position absolute\u304c\u52b9\u304b\u306a\u3044\u306e\u306f\u306a\u305c\u3067\u3059\u304b\uff1f<\/h3>\n\n\n<p class=\"wp-block-paragraph\"><strong>A.<\/strong> \u6700\u3082\u591a\u3044\u539f\u56e0\u306f\u3001\u89aa\u8981\u7d20\u306bposition: relative\u307e\u305f\u306fabsolute\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u89aa\u8981\u7d20\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306estatic\u306e\u307e\u307e\u3060\u3068\u753b\u9762\u5168\u4f53\u3092\u57fa\u6e96\u306b\u914d\u7f6e\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u307e\u305f\u9ad8\u3055\u3084\u5e45\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3082\u3001\u914d\u7f6e\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q3. relative\u3068absolute\u306f\u3069\u3046\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3044\u307e\u3059\u304b\uff1f<\/h3>\n\n\n<p class=\"wp-block-paragraph\"><strong>A.<\/strong> \u89aa\u8981\u7d20\u306bposition: relative\u3092\u8a2d\u5b9a\u3057\u3001\u5b50\u8981\u7d20\u306bposition: absolute\u3092\u6307\u5b9a\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u5b50\u8981\u7d20\u306f\u89aa\u8981\u7d20\u3092\u57fa\u6e96\u306b\u81ea\u7531\u306b\u914d\u7f6e\u3067\u304d\u3001\u30d0\u30ca\u30fc\u753b\u50cf\u306e\u4e0a\u306b\u30c6\u30ad\u30b9\u30c8\u3084\u30dc\u30bf\u30f3\u3092\u91cd\u306d\u308b\u306a\u3069\u3001\u4ed6\u306e\u8981\u7d20\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u305a\u306b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q4. z-index\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n\n\n<p class=\"wp-block-paragraph\"><strong>A.<\/strong> z-index\u306f\u8981\u7d20\u306e\u91cd\u306a\u308a\u9806\u3092\u5236\u5fa1\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3001position: relative\u3084absolute\u3067\u914d\u7f6e\u3057\u305f\u8981\u7d20\u306b\u5bfe\u3057\u3066\u6709\u52b9\u3067\u3059\u3002\u6570\u5024\u304c\u5927\u304d\u3044\u307b\u3069\u524d\u9762\u306b\u3001\u5c0f\u3055\u3044\u307b\u3069\u80cc\u9762\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u8907\u6570\u306e\u753b\u50cf\u3084\u30c6\u30ad\u30b9\u30c8\u304c\u91cd\u306a\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u3001\u7279\u5b9a\u306e\u8981\u7d20\u3092\u524d\u9762\u306b\u51fa\u3057\u305f\u3044\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Q5. position relative\u306f\u3069\u3093\u306a\u5834\u9762\u3067\u4f7f\u3044\u307e\u3059\u304b\uff1f<\/h3>\n\n\n<p class=\"wp-block-paragraph\"><strong>A.<\/strong> \u30d5\u30a9\u30fc\u30e0\u3084\u30dc\u30bf\u30f3\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30e1\u30cb\u30e5\u30fc\u306a\u3069\u306e\u8981\u7d20\u3092top\u3084left\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u5fae\u8abf\u6574\u3059\u308b\u5834\u9762\u3084\u3001@keyframes\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u308f\u308c\u307e\u3059\u3002\u8981\u7d20\u306e\u5143\u306e\u4f4d\u7f6e\u3092\u4fdd\u3061\u306a\u304c\u3089\u52d5\u304d\u3092\u52a0\u3048\u3089\u308c\u308b\u305f\u3081\u3001\u30da\u30fc\u30b8\u5168\u4f53\u306e\u69cb\u9020\u3092\u5d29\u3055\u305a\u306b\u8abf\u6574\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n\n<h2 class=\"wp-block-heading\">AI\u30b9\u30ad\u30eb\u3067\u3001\u672a\u6765\u306e\u81ea\u5206\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\uff01<\/h2>\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/s.lmes.jp\/landing-qr\/2010578884-C5To3Fmv?uLand=phzKXf\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" width=\"1254\" height=\"1254\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/07\/withai-cta-banner.jpg\" alt=\"\u4eca\u306a\u3089\u5b8c\u5168\u7121\u6599\u3067AI\u3092\u5b66\u3079\u308b\uff01WithAI\" class=\"wp-image-18841\" style=\"max-width:600px;width:100%;height:auto\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/07\/withai-cta-banner.jpg 1254w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/07\/withai-cta-banner-768x768.jpg 768w\" sizes=\"(max-width: 1254px) 100vw, 1254px\" \/><\/a><\/figure>\n\n<h3 class=\"wp-block-heading\">\u4eca\u306a\u3089\u5b8c\u5168\u7121\u6599\u3067AI\u3092\u5b66\u3079\u308b\uff01<\/h3>\n\n<ul class=\"wp-block-list\">\n<li><strong>\u52d5\u753b\u3084\u5b9f\u8df5\u3067\u697d\u3057\u304f\u5b66\u3079\u308b<\/strong>\uff1a\u521d\u5fc3\u8005\u3067\u3082\u5b89\u5fc3\u306e\u30ab\u30ea\u30ad\u30e5\u30e9\u30e0<\/li>\n<li><strong>\u30b9\u30de\u30db\u30fbPC\u3069\u3061\u3089\u3067\u3082OK<\/strong>\uff1a\u597d\u304d\u306a\u6642\u9593\u306b\u5b66\u7fd2\u3067\u304d\u308b<\/li>\n<li><strong>\u6599\u91d1\u306f\u4e00\u5207\u30ca\u30b7<\/strong>\uff1a<span class=\"swl-marker mark_yellow\">0\u5186\u3067AI\u30b9\u30ad\u30eb\u304c\u8eab\u306b\u3064\u304f<\/span><\/li>\n<\/ul>\n\n<p>\u76ee\u7684\u306b\u5408\u308f\u305b\u3066\u9078\u3079\u308b\u300cAI\u526f\u696d\u300d\u300cAI\u8ee2\u8077\u300d\u300cAI\u6d3b\u7528\u300d\u306e3\u30b3\u30fc\u30b9\u3092\u7528\u610f\u3002\u526f\u53ce\u5165\u30fb\u30ad\u30e3\u30ea\u30a2\u30c1\u30a7\u30f3\u30b8\u30fb\u65e5\u5e38\u306e\u751f\u7523\u6027\u30a2\u30c3\u30d7\u307e\u3067\u3001\u3042\u306a\u305f\u306e\u30b4\u30fc\u30eb\u306b\u5408\u308f\u305b\u3066AI\u3092\u5b66\u3079\u307e\u3059\u3002<\/p>\n\n<p>\u4f1a\u54e1\u767b\u9332\u306f\u30ab\u30f3\u30bf\u30f330\u79d2\u3067\u5b8c\u4e86\u3057\u307e\u3059\u3002\u307e\u305a\u306f\u516c\u5f0fLINE\u304b\u3089\u3001\u7121\u6599\u3067AI\u5b66\u7fd2\u3092\u30b9\u30bf\u30fc\u30c8\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n\n<div class=\"wp-block-buttons\"><div class=\"wp-block-button\"><a class=\"wp-block-button__link has-white-color has-text-color has-background has-link-color wp-element-button\" href=\"https:\/\/s.lmes.jp\/landing-qr\/2010578884-C5To3Fmv?uLand=phzKXf\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"background-color:#06c755\"><strong>\u516c\u5f0fLINE\u304b\u3089\u5b66\u7fd2\u3092\u30b9\u30bf\u30fc\u30c8<\/strong><\/a><\/div><\/div>\n\n\n<!-- withmedia-faq-schema -->\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"position relative\u3068absolute\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"relative\u306f\u8981\u7d20\u306e\u672c\u6765\u306e\u4f4d\u7f6e\u3092\u57fa\u6e96\u306b\u76f8\u5bfe\u7684\u306b\u4f4d\u7f6e\u3092\u8abf\u6574\u3067\u304d\u3001\u4ed6\u306e\u8981\u7d20\u306e\u914d\u7f6e\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u305b\u3093\u3002absolute\u306f\u8981\u7d20\u3092\u6587\u66f8\u306e\u6d41\u308c\u304b\u3089\u5916\u3057\u3001\u89aa\u8981\u7d20\u3092\u57fa\u6e96\u306b\u7d76\u5bfe\u7684\u306a\u4f4d\u7f6e\u3078\u81ea\u7531\u306b\u914d\u7f6e\u3067\u304d\u307e\u3059\u3002relative\u306f\u300c\u305d\u306e\u5834\u306b\u3044\u306a\u304c\u3089\u898b\u305f\u76ee\u3060\u3051\u305a\u3089\u3059\u300d\u3001absolute\u306f\u300c\u89aa\u3092\u57fa\u6e96\u306b\u7f6e\u304f\u300d\u3068\u7406\u89e3\u3059\u308b\u3068\u5206\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"position absolute\u304c\u52b9\u304b\u306a\u3044\u306e\u306f\u306a\u305c\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u6700\u3082\u591a\u3044\u539f\u56e0\u306f\u3001\u89aa\u8981\u7d20\u306bposition: relative\u307e\u305f\u306fabsolute\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u89aa\u8981\u7d20\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306estatic\u306e\u307e\u307e\u3060\u3068\u753b\u9762\u5168\u4f53\u3092\u57fa\u6e96\u306b\u914d\u7f6e\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u307e\u305f\u9ad8\u3055\u3084\u5e45\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3082\u3001\u914d\u7f6e\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"relative\u3068absolute\u306f\u3069\u3046\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3044\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u89aa\u8981\u7d20\u306bposition: relative\u3092\u8a2d\u5b9a\u3057\u3001\u5b50\u8981\u7d20\u306bposition: absolute\u3092\u6307\u5b9a\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u5b50\u8981\u7d20\u306f\u89aa\u8981\u7d20\u3092\u57fa\u6e96\u306b\u81ea\u7531\u306b\u914d\u7f6e\u3067\u304d\u3001\u30d0\u30ca\u30fc\u753b\u50cf\u306e\u4e0a\u306b\u30c6\u30ad\u30b9\u30c8\u3084\u30dc\u30bf\u30f3\u3092\u91cd\u306d\u308b\u306a\u3069\u3001\u4ed6\u306e\u8981\u7d20\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u305a\u306b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"z-index\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"z-index\u306f\u8981\u7d20\u306e\u91cd\u306a\u308a\u9806\u3092\u5236\u5fa1\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3001position: relative\u3084absolute\u3067\u914d\u7f6e\u3057\u305f\u8981\u7d20\u306b\u5bfe\u3057\u3066\u6709\u52b9\u3067\u3059\u3002\u6570\u5024\u304c\u5927\u304d\u3044\u307b\u3069\u524d\u9762\u306b\u3001\u5c0f\u3055\u3044\u307b\u3069\u80cc\u9762\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u8907\u6570\u306e\u753b\u50cf\u3084\u30c6\u30ad\u30b9\u30c8\u304c\u91cd\u306a\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u3001\u7279\u5b9a\u306e\u8981\u7d20\u3092\u524d\u9762\u306b\u51fa\u3057\u305f\u3044\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"position relative\u306f\u3069\u3093\u306a\u5834\u9762\u3067\u4f7f\u3044\u307e\u3059\u304b\uff1f\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"\u30d5\u30a9\u30fc\u30e0\u3084\u30dc\u30bf\u30f3\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30e1\u30cb\u30e5\u30fc\u306a\u3069\u306e\u8981\u7d20\u3092top\u3084left\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u5fae\u8abf\u6574\u3059\u308b\u5834\u9762\u3084\u3001@keyframes\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u308f\u308c\u307e\u3059\u3002\u8981\u7d20\u306e\u5143\u306e\u4f4d\u7f6e\u3092\u4fdd\u3061\u306a\u304c\u3089\u52d5\u304d\u3092\u52a0\u3048\u3089\u308c\u308b\u305f\u3081\u3001\u30da\u30fc\u30b8\u5168\u4f53\u306e\u69cb\u9020\u3092\u5d29\u3055\u305a\u306b\u8abf\u6574\u3067\u304d\u307e\u3059\u3002\"\n      }\n    }\n  ]\n}\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002\u57fa\u6e96\u4f4d\u7f6e\u306e\u8003\u3048\u65b9\u3001\u4e2d\u592e\u5bc4\u305b\u30fb\u30d0\u30c3\u30b8\u30fb\u91cd\u306d\u8868\u793a\u3001z-index\u3001\u52b9\u304b\u306a\u3044\u5834\u5408\u306e\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"author":2,"featured_media":7179,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"swell_btn_cv_data":"","footnotes":"","vk-ltc-link":"","vk-ltc-target":"0"},"categories":[34,361],"tags":[37,61,68],"class_list":["post-7176","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","category-css","tag-programming","tag-css","tag-html"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.6.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002\u57fa\u6e96\u4f4d\u7f6e\u306e\u8003\u3048\u65b9\u3001\u4e2d\u592e\u5bc4\u305b\u30fb\u30d0\u30c3\u30b8\u30fb\u91cd\u306d\u8868\u793a\u3001z-index\u3001\u52b9\u304b\u306a\u3044\u5834\u5408\u306e\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"WithCode \u7de8\u96c6\u90e8\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/withcode.tech\/media\/css-absolute-relative\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.6.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"WithMedia\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9\" \/>\n\t\t<meta property=\"og:description\" content=\"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002\u57fa\u6e96\u4f4d\u7f6e\u306e\u8003\u3048\u65b9\u3001\u4e2d\u592e\u5bc4\u305b\u30fb\u30d0\u30c3\u30b8\u30fb\u91cd\u306d\u8868\u793a\u3001z-index\u3001\u52b9\u304b\u306a\u3044\u5834\u5408\u306e\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/withcode.tech\/media\/css-absolute-relative\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-11-04T10:16:08+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-10-16T09:30:54+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@withcode_tech\" \/>\n\t\t<meta name=\"twitter:title\" content=\"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9\" \/>\n\t\t<meta name=\"twitter:description\" content=\"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002\u57fa\u6e96\u4f4d\u7f6e\u306e\u8003\u3048\u65b9\u3001\u4e2d\u592e\u5bc4\u305b\u30fb\u30d0\u30c3\u30b8\u30fb\u91cd\u306d\u8868\u793a\u3001z-index\u3001\u52b9\u304b\u306a\u3044\u5834\u5408\u306e\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@withcode_tech\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#blogposting\",\"name\":\"CSS\\u306eposition: absolute\\u3068relative\\u306e\\u9055\\u3044\\u30fb\\u4f7f\\u3044\\u65b9\",\"headline\":\"CSS\\u306eposition: absolute\\u3068relative\\u306e\\u9055\\u3044\\u30fb\\u4f7f\\u3044\\u65b9\",\"author\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/withcode-officialgmail-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/1-3.png\",\"width\":792,\"height\":447},\"datePublished\":\"2024-11-04T10:16:08+00:00\",\"dateModified\":\"2026-10-16T09:30:54+00:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#webpage\"},\"articleSection\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0, CSS, \\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0, CSS, HTML\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/withcode.tech\\\/media\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/programming\\\/#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/programming\\\/#listItem\",\"position\":2,\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\",\"item\":\"https:\\\/\\\/withcode.tech\\\/media\\\/programming\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/category\\\/programming\\\/css\\\/#listItem\",\"name\":\"CSS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/category\\\/programming\\\/css\\\/#listItem\",\"position\":3,\"name\":\"CSS\",\"item\":\"https:\\\/\\\/withcode.tech\\\/media\\\/category\\\/programming\\\/css\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#listItem\",\"name\":\"CSS\\u306eposition: absolute\\u3068relative\\u306e\\u9055\\u3044\\u30fb\\u4f7f\\u3044\\u65b9\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/programming\\\/#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#listItem\",\"position\":4,\"name\":\"CSS\\u306eposition: absolute\\u3068relative\\u306e\\u9055\\u3044\\u30fb\\u4f7f\\u3044\\u65b9\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/category\\\/programming\\\/css\\\/#listItem\",\"name\":\"CSS\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#organization\",\"name\":\"WithCode\",\"description\":\"\\u6848\\u4ef6\\u7372\\u5f97\\u738798.4\\uff05\\u306eWithGroup\\u304c\\u904b\\u55b6\\u3059\\u308bIT\\u30e1\\u30c7\\u30a3\\u30a2\\u3002\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u30fbAI\\u30fbWeb\\u5236\\u4f5c\\u306e\\u5b66\\u7fd2\\u304b\\u3089\\u526f\\u696d\\u30fb\\u30ad\\u30e3\\u30ea\\u30a2\\u30c1\\u30a7\\u30f3\\u30b8\\u307e\\u3067\\u5b9f\\u8df5\\u7684\\u306a\\u60c5\\u5831\\u3092\\u767a\\u4fe1\\u3002\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/\",\"telephone\":\"+81120526731\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/IMG_4237.png\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#organizationLogo\",\"width\":1000,\"height\":1000},\"image\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/withcode_tech\\\/\",\"https:\\\/\\\/www.instagram.com\\\/withcode_officials\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@withcode_tech\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@withcode8004\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/withcode-officialgmail-com\\\/#author\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/withcode-officialgmail-com\\\/\",\"name\":\"WithCode \\u7de8\\u96c6\\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ad3f38e60792789e3cad0db8b2f7ed4958ba9538118552121888dbff5477b349?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"WithCode \\u7de8\\u96c6\\u90e8\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#webpage\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/\",\"name\":\"CSS\\u306eposition: absolute\\u3068relative\\u306e\\u9055\\u3044\\u30fb\\u4f7f\\u3044\\u65b9\",\"description\":\"CSS\\u306eposition: absolute\\u3068relative\\u306e\\u9055\\u3044\\u3092\\u5b9f\\u4f8b\\u4ed8\\u304d\\u3067\\u89e3\\u8aac\\u3002\\u57fa\\u6e96\\u4f4d\\u7f6e\\u306e\\u8003\\u3048\\u65b9\\u3001\\u4e2d\\u592e\\u5bc4\\u305b\\u30fb\\u30d0\\u30c3\\u30b8\\u30fb\\u91cd\\u306d\\u8868\\u793a\\u3001z-index\\u3001\\u52b9\\u304b\\u306a\\u3044\\u5834\\u5408\\u306e\\u539f\\u56e0\\u307e\\u3067\\u5206\\u304b\\u308a\\u307e\\u3059\\u3002\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/withcode-officialgmail-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/withcode-officialgmail-com\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/1-3.png\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#mainImage\",\"width\":792,\"height\":447},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-absolute-relative\\\/#mainImage\"},\"datePublished\":\"2024-11-04T10:16:08+00:00\",\"dateModified\":\"2026-10-16T09:30:54+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#website\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/\",\"name\":\"WithCode Media\",\"description\":\"\\u6848\\u4ef6\\u7372\\u5f97\\u738798.4\\uff05\\u306eWithGroup\\u304c\\u904b\\u55b6\\u3059\\u308bIT\\u30e1\\u30c7\\u30a3\\u30a2\\u3002\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\\u30fbAI\\u30fbWeb\\u5236\\u4f5c\\u306e\\u5b66\\u7fd2\\u304b\\u3089\\u526f\\u696d\\u30fb\\u30ad\\u30e3\\u30ea\\u30a2\\u30c1\\u30a7\\u30f3\\u30b8\\u307e\\u3067\\u5b9f\\u8df5\\u7684\\u306a\\u60c5\\u5831\\u3092\\u767a\\u4fe1\\u3002\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9","description":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002\u57fa\u6e96\u4f4d\u7f6e\u306e\u8003\u3048\u65b9\u3001\u4e2d\u592e\u5bc4\u305b\u30fb\u30d0\u30c3\u30b8\u30fb\u91cd\u306d\u8868\u793a\u3001z-index\u3001\u52b9\u304b\u306a\u3044\u5834\u5408\u306e\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002","canonical_url":"https:\/\/withcode.tech\/media\/css-absolute-relative\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#blogposting","name":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9","headline":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9","author":{"@id":"https:\/\/withcode.tech\/media\/author\/withcode-officialgmail-com\/#author"},"publisher":{"@id":"https:\/\/withcode.tech\/media\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/10\/1-3.png","width":792,"height":447},"datePublished":"2024-11-04T10:16:08+00:00","dateModified":"2026-10-16T09:30:54+00:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#webpage"},"isPartOf":{"@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#webpage"},"articleSection":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0, CSS, \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0, CSS, HTML"},{"@type":"BreadcrumbList","@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/withcode.tech\/media\/","nextItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/programming\/#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/programming\/#listItem","position":2,"name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","item":"https:\/\/withcode.tech\/media\/programming\/","nextItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/category\/programming\/css\/#listItem","name":"CSS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/category\/programming\/css\/#listItem","position":3,"name":"CSS","item":"https:\/\/withcode.tech\/media\/category\/programming\/css\/","nextItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#listItem","name":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9"},"previousItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/programming\/#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#listItem","position":4,"name":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9","previousItem":{"@type":"ListItem","@id":"https:\/\/withcode.tech\/media\/category\/programming\/css\/#listItem","name":"CSS"}}]},{"@type":"Organization","@id":"https:\/\/withcode.tech\/media\/#organization","name":"WithCode","description":"\u6848\u4ef6\u7372\u5f97\u738798.4\uff05\u306eWithGroup\u304c\u904b\u55b6\u3059\u308bIT\u30e1\u30c7\u30a3\u30a2\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30fbAI\u30fbWeb\u5236\u4f5c\u306e\u5b66\u7fd2\u304b\u3089\u526f\u696d\u30fb\u30ad\u30e3\u30ea\u30a2\u30c1\u30a7\u30f3\u30b8\u307e\u3067\u5b9f\u8df5\u7684\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3002","url":"https:\/\/withcode.tech\/media\/","telephone":"+81120526731","logo":{"@type":"ImageObject","url":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/IMG_4237.png","@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#organizationLogo","width":1000,"height":1000},"image":{"@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#organizationLogo"},"sameAs":["https:\/\/twitter.com\/withcode_tech\/","https:\/\/www.instagram.com\/withcode_officials\/","https:\/\/www.tiktok.com\/@withcode_tech\/","https:\/\/www.youtube.com\/@withcode8004\/"]},{"@type":"Person","@id":"https:\/\/withcode.tech\/media\/author\/withcode-officialgmail-com\/#author","url":"https:\/\/withcode.tech\/media\/author\/withcode-officialgmail-com\/","name":"WithCode \u7de8\u96c6\u90e8","image":{"@type":"ImageObject","@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/ad3f38e60792789e3cad0db8b2f7ed4958ba9538118552121888dbff5477b349?s=96&d=mm&r=g","width":96,"height":96,"caption":"WithCode \u7de8\u96c6\u90e8"}},{"@type":"WebPage","@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#webpage","url":"https:\/\/withcode.tech\/media\/css-absolute-relative\/","name":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9","description":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002\u57fa\u6e96\u4f4d\u7f6e\u306e\u8003\u3048\u65b9\u3001\u4e2d\u592e\u5bc4\u305b\u30fb\u30d0\u30c3\u30b8\u30fb\u91cd\u306d\u8868\u793a\u3001z-index\u3001\u52b9\u304b\u306a\u3044\u5834\u5408\u306e\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002","inLanguage":"ja","isPartOf":{"@id":"https:\/\/withcode.tech\/media\/#website"},"breadcrumb":{"@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#breadcrumblist"},"author":{"@id":"https:\/\/withcode.tech\/media\/author\/withcode-officialgmail-com\/#author"},"creator":{"@id":"https:\/\/withcode.tech\/media\/author\/withcode-officialgmail-com\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/10\/1-3.png","@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#mainImage","width":792,"height":447},"primaryImageOfPage":{"@id":"https:\/\/withcode.tech\/media\/css-absolute-relative\/#mainImage"},"datePublished":"2024-11-04T10:16:08+00:00","dateModified":"2026-10-16T09:30:54+00:00"},{"@type":"WebSite","@id":"https:\/\/withcode.tech\/media\/#website","url":"https:\/\/withcode.tech\/media\/","name":"WithCode Media","description":"\u6848\u4ef6\u7372\u5f97\u738798.4\uff05\u306eWithGroup\u304c\u904b\u55b6\u3059\u308bIT\u30e1\u30c7\u30a3\u30a2\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30fbAI\u30fbWeb\u5236\u4f5c\u306e\u5b66\u7fd2\u304b\u3089\u526f\u696d\u30fb\u30ad\u30e3\u30ea\u30a2\u30c1\u30a7\u30f3\u30b8\u307e\u3067\u5b9f\u8df5\u7684\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3002","inLanguage":"ja","publisher":{"@id":"https:\/\/withcode.tech\/media\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"WithMedia","og:type":"article","og:title":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9","og:description":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002\u57fa\u6e96\u4f4d\u7f6e\u306e\u8003\u3048\u65b9\u3001\u4e2d\u592e\u5bc4\u305b\u30fb\u30d0\u30c3\u30b8\u30fb\u91cd\u306d\u8868\u793a\u3001z-index\u3001\u52b9\u304b\u306a\u3044\u5834\u5408\u306e\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002","og:url":"https:\/\/withcode.tech\/media\/css-absolute-relative\/","og:image":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp","og:image:secure_url":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp","article:published_time":"2024-11-04T10:16:08+00:00","article:modified_time":"2026-10-16T09:30:54+00:00","twitter:card":"summary_large_image","twitter:site":"@withcode_tech","twitter:title":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9","twitter:description":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002\u57fa\u6e96\u4f4d\u7f6e\u306e\u8003\u3048\u65b9\u3001\u4e2d\u592e\u5bc4\u305b\u30fb\u30d0\u30c3\u30b8\u30fb\u91cd\u306d\u8868\u793a\u3001z-index\u3001\u52b9\u304b\u306a\u3044\u5834\u5408\u306e\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002","twitter:creator":"@withcode_tech","twitter:image":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2024\/04\/withcode.tech_-scaled.webp"},"aioseo_meta_data":{"post_id":"7176","title":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9","description":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002\u57fa\u6e96\u4f4d\u7f6e\u306e\u8003\u3048\u65b9\u3001\u4e2d\u592e\u5bc4\u305b\u30fb\u30d0\u30c3\u30b8\u30fb\u91cd\u306d\u8868\u793a\u3001z-index\u3001\u52b9\u304b\u306a\u3044\u5834\u5408\u306e\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002","keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2024-10-19 07:05:42","updated":"2026-10-16 09:30:55","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/withcode.tech\/media\/\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u203a<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/withcode.tech\/media\/programming\/\" title=\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u203a<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/withcode.tech\/media\/category\/programming\/css\/\" title=\"CSS\">CSS<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u203a<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/withcode.tech\/media\/"},{"label":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","link":"https:\/\/withcode.tech\/media\/programming\/"},{"label":"CSS","link":"https:\/\/withcode.tech\/media\/category\/programming\/css\/"},{"label":"CSS\u306eposition: absolute\u3068relative\u306e\u9055\u3044\u30fb\u4f7f\u3044\u65b9","link":"https:\/\/withcode.tech\/media\/css-absolute-relative\/"}],"_links":{"self":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/7176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/comments?post=7176"}],"version-history":[{"count":29,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/7176\/revisions"}],"predecessor-version":[{"id":28236,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/7176\/revisions\/28236"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/media\/7179"}],"wp:attachment":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/media?parent=7176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/categories?post=7176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/tags?post=7176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}