{"id":18114,"date":"2026-07-14T16:29:16","date_gmt":"2026-07-14T16:29:16","guid":{"rendered":"https:\/\/withcode.tech\/media\/?p=18114"},"modified":"2026-10-16T09:35:53","modified_gmt":"2026-10-16T09:35:53","slug":"css-centering","status":"publish","type":"post","link":"https:\/\/withcode.tech\/media\/css-centering\/","title":{"rendered":"CSS\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b"},"content":{"rendered":"<p class=\"wp-block-paragraph\">\u300cCSS\u3067\u8981\u7d20\u3092\u4e2d\u592e\u306b\u5bc4\u305b\u305f\u3044\u306e\u306b\u3001\u306a\u305c\u304b\u305a\u308c\u308b\u300d\u300cflexbox\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u306b\u7e26\u65b9\u5411\u304c\u4e2d\u592e\u306b\u306a\u3089\u306a\u3044\u300d\u2014\u2014\u3053\u3046\u3057\u305f\u60a9\u307f\u306f\u3001Web\u5236\u4f5c\u3092\u59cb\u3081\u305f\u3070\u304b\u308a\u306e\u4eba\u304c\u5fc5\u305a\u3068\u3044\u3063\u3066\u3044\u3044\u307b\u3069\u3076\u3064\u304b\u308b\u58c1\u3067\u3059\u3002CSS\u306e\u4e2d\u592e\u5bc4\u305b\u306f\u3001\u4e00\u898b\u30b7\u30f3\u30d7\u30eb\u306b\u898b\u3048\u3066\u3001\u6a2a\u304b\u7e26\u304b\u30fb\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u304b\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u304b\u306b\u3088\u3063\u3066\u4f7f\u3046\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30012026\u5e74\u73fe\u5728\u306e\u30e2\u30c0\u30f3CSS\u624b\u6cd5\u3092\u4e2d\u5fc3\u306b\u3001\u6c34\u5e73\u30fb\u5782\u76f4\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u5b8c\u5168\u4e2d\u592e\u5bc4\u305b\u3092\u7db2\u7f85\u7684\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002flexbox\u30fbgrid\u30fbmargin\u30fbposition\u30fbtext-align\u3068\u3001\u72b6\u6cc1\u5225\u306b\u30b3\u30d4\u30da\u3067\u304d\u308b\u5b8c\u5168\u306a\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u6dfb\u3048\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002\u300c\u3069\u306e\u624b\u6cd5\u3092\u3044\u3064\u4f7f\u3048\u3070\u3044\u3044\u304b\u308f\u304b\u3089\u306a\u3044\u300d\u3068\u3044\u3046\u65b9\u3082\u3001\u8a18\u4e8b\u306e\u6700\u5f8c\u306b\u3042\u308b\u65e9\u898b\u8868\u3092\u898b\u308c\u3070\u4e00\u767a\u3067\u5224\u65ad\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u521d\u5fc3\u8005\u306e\u65b9\u3082\u3001\u65e2\u306b\u4e2d\u592e\u5bc4\u305b\u306e\u57fa\u672c\u3092\u77e5\u3063\u3066\u3044\u308b\u304c\u3088\u308a\u4f53\u7cfb\u7684\u306b\u6574\u7406\u3057\u305f\u3044\u4e2d\u7d1a\u8005\u306e\u65b9\u3082\u3001\u305c\u3072\u624b\u5143\u306b\u7f6e\u3044\u3066\u304a\u304f\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3068\u3057\u3066\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u5148\u306b\u3001\u3053\u306e\u8a18\u4e8b\u306e\u7d50\u8ad6\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u6c34\u5e73\u4e2d\u592e\u306a\u3089flexbox\u306e<code>justify-content: center<\/code>\u307e\u305f\u306f\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u306a\u3089<code>margin: 0 auto<\/code>\u304c\u6700\u3082\u30b7\u30f3\u30d7\u30eb<\/li>\n<li>\u4e0a\u4e0b\u5de6\u53f3\u5b8c\u5168\u4e2d\u592e\u306a\u3089flexbox\u307e\u305f\u306fgrid\u3067\u89aa\u8981\u7d20\u306b\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3067\u4e00\u767a\u89e3\u6c7a<\/li>\n<li>\u30c6\u30ad\u30b9\u30c8\u30fb\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u306e\u4e2d\u592e\u306f<code>text-align: center<\/code>\u3067\u5bfe\u5fdc<\/li>\n<li>\u7d76\u5bfe\u914d\u7f6e\uff08position: absolute\uff09\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u3068\u304d\u306ftransform\u304c\u6700\u3082\u5b89\u5168<\/li>\n<\/ul>\n\n\n<!-- delight:centering-v1 -->\n<h2 class=\"wp-block-heading\">\u3010\u6700\u901f\u30b3\u30d4\u30da\u3011\u76ee\u7684\u5225\u30fb\u4e2d\u592e\u5bc4\u305b\u30ec\u30b7\u30d4\u65e9\u898b\u8868<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-01\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-01-v2.jpg\" alt=\"\u3010\u6700\u901f\u30b3\u30d4\u30da\u3011\u76ee\u7684\u5225\u30fb\u4e2d\u592e\u5bc4\u305b\u30ec\u30b7\u30d4\u65e9\u898b\u8868\" class=\"wp-image-25796\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-01-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-01-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-01-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-01 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-01.jpg\" alt=\"\u3010\u6700\u901f\u30b3\u30d4\u30da\u3011\u76ee\u7684\u5225\u30fb\u4e2d\u592e\u5bc4\u305b\u30ec\u30b7\u30d4\u65e9\u898b\u8868\" class=\"wp-image-24436\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-01.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-01-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-01-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-01 -->\n<p class=\"wp-block-paragraph\">\u300c\u4eca\u3059\u3050\u4e2d\u592e\u306b\u7f6e\u304d\u305f\u3044\u300d\u3068\u3044\u3046\u4eba\u5411\u3051\u306b\u3001\u76ee\u7684\u5225\u306e\u30b3\u30d4\u30da\u30ec\u30b7\u30d4\u3092\u6700\u521d\u306b\u307e\u3068\u3081\u307e\u3059\u3002\u8ff7\u3063\u305f\u3089\u4e00\u756a\u4e0a\u306e Flexbox \u3092\u4f7f\u3048\u3070\u3001\u305f\u3044\u3066\u3044\u306e\u4e2d\u592e\u5bc4\u305b\u306f\u89e3\u6c7a\u3057\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u3084\u308a\u305f\u3044\u3053\u3068<\/th><th>\u30b3\u30d4\u30daCSS<\/th><th>\u3072\u3068\u3053\u3068<\/th><\/tr><\/thead><tbody><tr><td>\u89aa\u306e\u4e2d\u3067\u30c9\u771f\u3093\u4e2d<\/td><td><code>display:flex; justify-content:center; align-items:center;<\/code><\/td><td>\u6700\u5f37\u30fb\u8ff7\u3063\u305f\u3089\u3053\u308c<\/td><\/tr><tr><td>\u30c6\u30ad\u30b9\u30c8\u3092\u6a2a\u4e2d\u592e<\/td><td><code>text-align:center;<\/code><\/td><td>\u6587\u5b57\u3060\u3051\u306a\u3089\u3053\u308c\u3067\u5341\u5206<\/td><\/tr><tr><td>\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u3092\u6a2a\u4e2d\u592e<\/td><td><code>margin-inline:auto;<\/code>\uff08\u8981 width \u6307\u5b9a\uff09<\/td><td>\u753b\u50cf\u30fbdiv\u30fbtable<\/td><\/tr><tr><td>\u3068\u306b\u304b\u304f\u6700\u77ed\u3067\u4e2d\u592e<\/td><td><code>display:grid; place-items:center;<\/code><\/td><td>Grid\u306a\u30891\u884c<\/td><\/tr><tr><td>\u91cd\u306d\u3066\u4e2d\u592e\uff08\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\uff09<\/td><td><code>position:absolute; inset:0; margin:auto;<\/code><\/td><td>\u30dc\u30bf\u30f3\u30fb\u30e9\u30d9\u30eb\u914d\u7f6e<\/td><\/tr><\/tbody><\/table><\/figure>\n<p class=\"wp-block-paragraph\">\u300c\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u300d\u306e\u4e07\u80fd\u30d1\u30bf\u30fc\u30f3\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002\u89aa\u8981\u7d20\u306b\u3053\u306e3\u884c\u3092\u66f8\u304f\u3060\u3051\u3067\u3001\u4e2d\u306e\u8981\u7d20\u304c\u7e26\u6a2a\u3069\u771f\u3093\u4e2d\u306b\u6765\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.parent {\n  display: flex;\n  justify-content: center; \/* \u6a2a *\/\n  align-items: center;     \/* \u7e26 *\/\n}<\/code><\/pre><\/div>\n\n\n<!-- roam:v1 -->\n<p class=\"wp-block-paragraph\">\u4e2d\u592e\u5bc4\u305b\u306e\u571f\u53f0\u3068\u306a\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u305d\u306e\u3082\u306e\u3092\u5b66\u3076\u306a\u3089\u3001<a href=\"https:\/\/withcode.tech\/media\/flex-box-layout\/\">Flexbox\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u57fa\u672c<\/a>\u3068<a href=\"https:\/\/withcode.tech\/media\/grid-layout-webdesign\/\">Grid\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u57fa\u672c<\/a>\u3082\u3042\u308f\u305b\u3066\u3069\u3046\u305e\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">flexbox\u3067\u6c34\u5e73\u4e2d\u592e\u5bc4\u305b\uff08justify-content: center\uff09<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-02\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-02-v2.jpg\" alt=\"flexbox\u3067\u6c34\u5e73\u4e2d\u592e\u5bc4\u305b\uff08justify-content: center\uff09\" class=\"wp-image-25797\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-02-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-02-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-02-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-02 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-02.jpg\" alt=\"flexbox\u3067\u6c34\u5e73\u4e2d\u592e\u5bc4\u305b\uff08justify-content: center\uff09\" class=\"wp-image-24437\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-02.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-02-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-02-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-02 -->\n\n\n\n<p class=\"wp-block-paragraph\">flexbox\u3092\u4f7f\u3063\u305f\u6c34\u5e73\u4e2d\u592e\u5bc4\u305b\u306f\u3001\u30e2\u30c0\u30f3CSS\u3067\u6700\u3082\u3088\u304f\u4f7f\u308f\u308c\u308b\u624b\u6cd5\u3067\u3059\u3002\u89aa\u8981\u7d20\u306b<code>display: flex<\/code>\u3068<code>justify-content: center<\/code>\u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u3001\u5b50\u8981\u7d20\u304c\u4e3b\u8ef8\uff08\u6a2a\u65b9\u5411\uff09\u306e\u4e2d\u592e\u306b\u4e26\u3073\u307e\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3057\u3066\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-markup\" data-lang=\"HTML\"><code>&lt;!-- HTML --&gt;\n&lt;div class=\"container\"&gt;\n  &lt;div class=\"box\"&gt;\u4e2d\u592e\u5bc4\u305b\u3057\u305f\u3044\u8981\u7d20&lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* CSS *\/\n.container {\n  display: flex;\n  justify-content: center; \/* \u6c34\u5e73\u4e2d\u592e *\/\n  width: 100%;\n  background: #f0f0f0;\n  padding: 20px;\n}\n\n.box {\n  background: #d16176;\n  color: #fff;\n  padding: 20px 40px;\n  border-radius: 4px;\n}<\/code><\/pre><\/div>\n\n<p class=\"wp-block-paragraph\"><code>justify-content<\/code>\u306fflex\u306e\u4e3b\u8ef8\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u6a2a\u65b9\u5411\uff09\u306b\u5bfe\u3057\u3066\u5b50\u8981\u7d20\u306e\u914d\u7f6e\u3092\u6c7a\u3081\u307e\u3059\u3002<code>center<\/code>\u306b\u3059\u308b\u3068\u8907\u6570\u306e\u5b50\u8981\u7d20\u3092\u307e\u3068\u3081\u3066\u4e2d\u592e\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">\u8907\u6570\u306e\u5b50\u8981\u7d20\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u5b50\u8981\u7d20\u540c\u58eb\u306e\u9593\u9694\u3092<code>gap<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u8abf\u6574\u3067\u304d\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u8907\u6570\u306e\u5b50\u8981\u7d20\u3092\u7b49\u9593\u9694\u3067\u4e2d\u592e\u306b\u4e26\u3079\u308b *\/\n.container {\n  display: flex;\n  justify-content: center;\n  gap: 16px; \/* \u5b50\u8981\u7d20\u9593\u306e\u30b9\u30da\u30fc\u30b9 *\/\n}<\/code><\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">flexbox\u3067\u5782\u76f4\u4e2d\u592e\u5bc4\u305b\uff08align-items: center\uff09<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-03\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-03-v3.jpg\" alt=\"flexbox\u3067\u5782\u76f4\u4e2d\u592e\u5bc4\u305b\uff08align-items: center\uff09\" class=\"wp-image-25798\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-03-v3.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-03-v3-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-03-v3-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-03 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-03.jpg\" alt=\"flexbox\u3067\u5782\u76f4\u4e2d\u592e\u5bc4\u305b\uff08align-items: center\uff09\" class=\"wp-image-24438\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-03.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-03-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-03-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-03 -->\n\n\n\n<p class=\"wp-block-paragraph\">\u5782\u76f4\u65b9\u5411\uff08\u7e26\uff09\u306e\u4e2d\u592e\u5bc4\u305b\u306b\u306f<code>align-items: center<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002flexbox\u3067\u306f<code>justify-content<\/code>\u304c\u4e3b\u8ef8\u3001<code>align-items<\/code>\u304c\u4ea4\u5dee\u8ef8\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306eflex-direction\uff08row\uff09\u3067\u306f\u4ea4\u5dee\u8ef8\u306f\u7e26\u65b9\u5411\u306a\u306e\u3067\u3001<code>align-items: center<\/code>\u3067\u5782\u76f4\u4e2d\u592e\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">\u89aa\u8981\u7d20\u306b\u9ad8\u3055\u304c\u5fc5\u8981\u306a\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u9ad8\u3055\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u4e2d\u592e\u5bc4\u305b\u304c\u76ee\u306b\u898b\u3048\u307e\u305b\u3093\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-markup\" data-lang=\"HTML\"><code>&lt;!-- HTML --&gt;\n&lt;div class=\"container\"&gt;\n  &lt;div class=\"box\"&gt;\u5782\u76f4\u4e2d\u592e\u5bc4\u305b&lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* CSS *\/\n.container {\n  display: flex;\n  align-items: center; \/* \u5782\u76f4\u4e2d\u592e *\/\n  height: 300px; \/* \u9ad8\u3055\u304c\u5fc5\u8981 *\/\n  background: #EFBDB7;\n}\n\n.box {\n  background: #51322b;\n  color: #fff;\n  padding: 20px 40px;\n  border-radius: 4px;\n}<\/code><\/pre><\/div>\n\n<p class=\"wp-block-paragraph\">\u30d8\u30c3\u30c0\u30fc\u306b\u30ed\u30b4\u3068\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3092\u7e26\u65b9\u5411\u3067\u4e2d\u592e\u306b\u63c3\u3048\u305f\u3044\u5834\u5408\u306a\u3069\u3001\u5b9f\u6848\u4ef6\u3067\u983b\u7e41\u306b\u4f7f\u3046\u624b\u6cd5\u3067\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">flexbox\u3067\u4e0a\u4e0b\u5de6\u53f3\u306e\u5b8c\u5168\u4e2d\u592e\u5bc4\u305b\uff08\u30b3\u30d4\u30da\u5b8c\u5168\u30b3\u30fc\u30c9\uff09<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-04\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-04-v2.jpg\" alt=\"flexbox\u3067\u4e0a\u4e0b\u5de6\u53f3\u306e\u5b8c\u5168\u4e2d\u592e\u5bc4\u305b\uff08\u30b3\u30d4\u30da\u5b8c\u5168\u30b3\u30fc\u30c9\uff09\" class=\"wp-image-25799\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-04-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-04-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-04-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-04 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-04.jpg\" alt=\"flexbox\u3067\u4e0a\u4e0b\u5de6\u53f3\u306e\u5b8c\u5168\u4e2d\u592e\u5bc4\u305b\uff08\u30b3\u30d4\u30da\u5b8c\u5168\u30b3\u30fc\u30c9\uff09\" class=\"wp-image-24439\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-04.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-04-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-04-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-04 -->\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u3082\u4f7f\u308f\u308c\u308b\u30d1\u30bf\u30fc\u30f3\u304c\u3001\u4e0a\u4e0b\u5de6\u53f3\u3059\u3079\u3066\u3092\u4e2d\u592e\u306b\u5bc4\u305b\u308b\u300c\u5b8c\u5168\u4e2d\u592e\u5bc4\u305b\u300d\u3067\u3059\u3002flexbox\u3067\u306f<code>justify-content: center<\/code>\u3068<code>align-items: center<\/code>\u3092\u4e21\u65b9\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u753b\u9762\u30fb\u30e2\u30fc\u30c0\u30eb\u306e\u4e2d\u8eab\u30fb\u30ab\u30fc\u30c9\u8981\u7d20\u306e\u4e2d\u592e\u914d\u7f6e\u306a\u3069\u3001\u5e45\u5e83\u3044\u5834\u9762\u3067\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-markup\" data-lang=\"HTML\"><code>&lt;!-- HTML --&gt;\n&lt;div class=\"center-wrap\"&gt;\n  &lt;div class=\"content\"&gt;\n    &lt;h1&gt;\u4e0a\u4e0b\u5de6\u53f3\u4e2d\u592e\u5bc4\u305b&lt;\/h1&gt;\n    &lt;p&gt;flexbox\u3067\u4e00\u767a\u89e3\u6c7a&lt;\/p&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* CSS: \u30b3\u30d4\u30da\u3067\u52d5\u304f\u5b8c\u5168\u30b3\u30fc\u30c9 *\/\n.center-wrap {\n  display: flex;\n  justify-content: center; \/* \u6c34\u5e73\u4e2d\u592e *\/\n  align-items: center;     \/* \u5782\u76f4\u4e2d\u592e *\/\n  min-height: 100vh;       \/* \u753b\u9762\u306e\u9ad8\u3055\u3044\u3063\u3071\u3044 *\/\n  background: #f5f5f5;\n}\n\n.content {\n  text-align: center;\n  background: #fff;\n  padding: 40px 60px;\n  border-radius: 8px;\n  box-shadow: 0 4px 20px rgba(0,0,0,0.1);\n}<\/code><\/pre><\/div>\n\n<p class=\"wp-block-paragraph\"><code>min-height: 100vh<\/code>\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u5c11\u306a\u304f\u3066\u3082\u753b\u9762\u5168\u4f53\u306e\u9ad8\u3055\u3092\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u753b\u9762\u306a\u3069\u3067\u7279\u306b\u6709\u52b9\u3067\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">flex-direction\u3092<code>column<\/code>\u306b\u3059\u308b\u3068\u4e3b\u8ef8\u3068\u4ea4\u5dee\u8ef8\u304c\u5165\u308c\u66ff\u308f\u308a\u307e\u3059\u3002\u7e26\u306b\u4e26\u3079\u306a\u304c\u3089\u4e2d\u592e\u5bc4\u305b\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u7e26\u4e26\u3073\u3067\u4e0a\u4e0b\u5de6\u53f3\u4e2d\u592e *\/\n.center-wrap {\n  display: flex;\n  flex-direction: column;\n  justify-content: center; \/* \u7e26\u65b9\u5411\u306e\u4e2d\u592e\uff08column\u306a\u306e\u3067\uff09 *\/\n  align-items: center;     \/* \u6a2a\u65b9\u5411\u306e\u4e2d\u592e *\/\n  min-height: 100vh;\n}<\/code><\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">CSS grid\u3067\u4e00\u767a\u4e2d\u592e\u5bc4\u305b\uff08place-items: center\uff09<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-05\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-05-v2.jpg\" alt=\"CSS grid\u3067\u4e00\u767a\u4e2d\u592e\u5bc4\u305b\uff08place-items: center\uff09\" class=\"wp-image-25800\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-05-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-05-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-05-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-05 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-05.jpg\" alt=\"CSS grid\u3067\u4e00\u767a\u4e2d\u592e\u5bc4\u305b\uff08place-items: center\uff09\" class=\"wp-image-24440\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-05.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-05-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-05-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-05 -->\n\n\n\n<p class=\"wp-block-paragraph\">grid\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u306f<code>place-items: center<\/code>\u3068\u3044\u30461\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u4e0a\u4e0b\u5de6\u53f3\u306e\u5b8c\u5168\u4e2d\u592e\u5bc4\u305b\u304c\u3067\u304d\u307e\u3059\u3002<code>place-items<\/code>\u306f<code>align-items<\/code>\u3068<code>justify-items<\/code>\u3092\u4e00\u62ec\u3067\u8a2d\u5b9a\u3059\u308b\u30b7\u30e7\u30fc\u30c8\u30cf\u30f3\u30c9\u3067\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">flexbox\u3088\u308a\u8a18\u8ff0\u91cf\u304c\u5c11\u306a\u304f\u3001\u7279\u306b\u300c1\u3064\u306e\u8981\u7d20\u3092\u3069\u771f\u3093\u4e2d\u306b\u7f6e\u304d\u305f\u3044\u300d\u5834\u9762\u3067\u306fgrid\u306e\u65b9\u304c\u30b3\u30fc\u30c9\u304c\u3059\u3063\u304d\u308a\u3057\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-markup\" data-lang=\"HTML\"><code>&lt;!-- HTML --&gt;\n&lt;div class=\"grid-center\"&gt;\n  &lt;div class=\"card\"&gt;grid\u3067\u4e2d\u592e\u5bc4\u305b&lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* CSS *\/\n.grid-center {\n  display: grid;\n  place-items: center; \/* \u4e0a\u4e0b\u5de6\u53f3\u4e00\u767a\u4e2d\u592e *\/\n  min-height: 100vh;\n  background: #f0f0f0;\n}\n\n.card {\n  background: #d16176;\n  color: #fff;\n  padding: 40px;\n  border-radius: 8px;\n  font-size: 1.2rem;\n}<\/code><\/pre><\/div>\n\n<p class=\"wp-block-paragraph\"><code>place-items<\/code>\u306f\u6bd4\u8f03\u7684\u65b0\u3057\u3044\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u304c\u30012026\u5e74\u73fe\u5728\u3067\u306f\u3059\u3079\u3066\u306e\u4e3b\u8981\u30d6\u30e9\u30a6\u30b6\u3067\u5bfe\u5fdc\u6e08\u307f\u3067\u3059\u3002IE11\u306e\u30b5\u30dd\u30fc\u30c8\u304c\u7d42\u4e86\u3057\u305f\u305f\u3081\u3001\u73fe\u4ee3\u306eWeb\u5236\u4f5c\u3067\u306f\u7a4d\u6975\u7684\u306b\u4f7f\u3048\u308b\u624b\u6cd5\u3067\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">\u8907\u6570\u306e\u30bb\u30eb\u306b\u5bfe\u3057\u3066\u4e2d\u592e\u5bc4\u305b\u3057\u305f\u3044\u5834\u5408\u306f<code>place-content: center<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u8907\u6570\u30bb\u30eb\u3092\u307e\u3068\u3081\u3066\u4e2d\u592e\u306b\uff08\u30b0\u30ea\u30c3\u30c9\u30c8\u30e9\u30c3\u30af\u5168\u4f53\u3092\u4e2d\u592e\u3078\uff09 *\/\n.grid-center {\n  display: grid;\n  place-content: center;\n  gap: 20px;\n  min-height: 100vh;\n}<\/code><\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">margin: 0 auto\u3067\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u3092\u6c34\u5e73\u4e2d\u592e\u5bc4\u305b<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-06\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-06-v3.jpg\" alt=\"margin: 0 auto\u3067\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u3092\u6c34\u5e73\u4e2d\u592e\u5bc4\u305b\" class=\"wp-image-25801\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-06-v3.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-06-v3-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-06-v3-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-06 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-06.jpg\" alt=\"margin: 0 auto\u3067\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u3092\u6c34\u5e73\u4e2d\u592e\u5bc4\u305b\" class=\"wp-image-24441\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-06.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-06-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-06-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-06 -->\n\n\n\n<p class=\"wp-block-paragraph\"><code>margin: 0 auto<\/code>\u306f\u3001\u30d6\u30ed\u30c3\u30af\u8981\u7d20\uff08div\u3084p\u306a\u3069\uff09\u3092\u6c34\u5e73\u65b9\u5411\u306b\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u6700\u3082\u30af\u30e9\u30b7\u30c3\u30af\u306a\u624b\u6cd5\u3067\u3059\u3002flexbox\u3084grid\u304c\u666e\u53ca\u3057\u305f\u73fe\u5728\u3067\u3082\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u5e45\u3092\u56fa\u5b9a\u3057\u3066\u4e2d\u592e\u306b\u7f6e\u304f\u7528\u9014\u3067\u306f\u73fe\u5f79\u3067\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">\u305f\u3060\u3057\u3001\u3053\u306e\u624b\u6cd5\u306b\u306f\u6761\u4ef6\u304c\u3042\u308a\u307e\u3059\u3002\u5bfe\u8c61\u8981\u7d20\u306b<strong>width\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b<\/strong>\u3053\u3068\u3001\u304b\u3064<strong>\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u3067\u3042\u308b\u3053\u3068<\/strong>\u304c\u5fc5\u9808\u3067\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-markup\" data-lang=\"HTML\"><code>&lt;!-- HTML --&gt;\n&lt;div class=\"wrapper\"&gt;\n  &lt;p&gt;\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u3053\u3053\u306b\u5165\u308b&lt;\/p&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* CSS *\/\n.wrapper {\n  width: 800px;     \/* width\u304c\u5fc5\u9808 *\/\n  max-width: 100%;  \/* \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc *\/\n  margin: 0 auto;   \/* \u5de6\u53f3\u3092\u5747\u7b49\u306b\u81ea\u52d5\u8a08\u7b97 *\/\n  padding: 0 20px;  \/* \u4f59\u767d\u3092\u78ba\u4fdd *\/\n}<\/code><\/pre><\/div>\n\n<p class=\"wp-block-paragraph\">\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3\u3067\u306f<code>max-width<\/code>\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u306e\u304c\u5b9a\u756a\u3067\u3059\u3002<code>width: 800px; max-width: 100%;<\/code>\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u753b\u9762\u5e45\u304c800px\u672a\u6e80\u306e\u30b9\u30de\u30db\u3067\u306f\u753b\u9762\u5e45\u3044\u3063\u3071\u3044\u306b\u5e83\u304c\u308a\u3001PC\u3067\u306f800px\u3067\u56fa\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\"><code>margin: auto<\/code>\u3060\u3051\u3067\u306f\u5782\u76f4\u65b9\u5411\uff08\u4e0a\u4e0b\uff09\u306e\u4e2d\u592e\u5bc4\u305b\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u5782\u76f4\u4e2d\u592e\u304c\u5fc5\u8981\u306a\u5834\u5408\u306fflex\/grid\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u3088\u304f\u3042\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u30b3\u30f3\u30c6\u30ca\u8a2d\u5b9a *\/\n.container {\n  width: 1100px;\n  max-width: 100%;\n  margin: 0 auto;\n  padding: 0 24px;\n  box-sizing: border-box;\n}<\/code><\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">text-align: center\u3067\u30c6\u30ad\u30b9\u30c8\u30fb\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-07\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-07-v3.jpg\" alt=\"text-align: center\u3067\u30c6\u30ad\u30b9\u30c8\u30fb\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\" class=\"wp-image-25802\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-07-v3.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-07-v3-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-07-v3-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-07 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-07.jpg\" alt=\"text-align: center\u3067\u30c6\u30ad\u30b9\u30c8\u30fb\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\" class=\"wp-image-24442\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-07.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-07-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-07-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-07 -->\n\n\n\n<p class=\"wp-block-paragraph\"><code>text-align: center<\/code>\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u3084\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u30fb\u30a4\u30f3\u30e9\u30a4\u30f3\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u3092\u6c34\u5e73\u4e2d\u592e\u306b\u5bc4\u305b\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u81ea\u4f53\u306f\u79fb\u52d5\u3055\u305b\u305a\u3001\u305d\u306e\u4e2d\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u592e\u5bc4\u305b\u3057\u307e\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">\u898b\u51fa\u3057\u30fb\u30c6\u30ad\u30b9\u30c8\u30fb\u30dc\u30bf\u30f3\uff08<code>display: inline-block<\/code>\u306e\u3082\u306e\uff09\u306a\u3069\u3092\u4e2d\u592e\u306b\u7f6e\u304f\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-markup\" data-lang=\"HTML\"><code>&lt;!-- HTML --&gt;\n&lt;div class=\"section\"&gt;\n  &lt;h2&gt;\u30bb\u30af\u30b7\u30e7\u30f3\u30bf\u30a4\u30c8\u30eb&lt;\/h2&gt;\n  &lt;p&gt;\u30c6\u30ad\u30b9\u30c8\u304c\u4e2d\u592e\u306b\u4e26\u3073\u307e\u3059\u3002&lt;\/p&gt;\n  &lt;a href=\"#\" class=\"btn\"&gt;\u30dc\u30bf\u30f3&lt;\/a&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* CSS *\/\n.section {\n  text-align: center; \/* \u5b50\u8981\u7d20\u306e\u30c6\u30ad\u30b9\u30c8\u3068\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b *\/\n  padding: 60px 20px;\n}\n\n.btn {\n  display: inline-block; \/* inline-block\u306b\u3059\u308b\u3053\u3068\u3067text-align\u304c\u52b9\u304f *\/\n  background: #d16176;\n  color: #fff;\n  padding: 12px 32px;\n  border-radius: 4px;\n  text-decoration: none;\n}<\/code><\/pre><\/div>\n\n<p class=\"wp-block-paragraph\"><code>text-align: center<\/code>\u304c\u52b9\u304f\u306e\u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u30fb\u30a4\u30f3\u30e9\u30a4\u30f3\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u306b\u5bfe\u3057\u3066\u3067\u3059\u3002<code>display: block<\/code>\u306e\u8981\u7d20\u306b\u306f\u52b9\u304d\u307e\u305b\u3093\u3002\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u3092\u4e2d\u592e\u306b\u3057\u305f\u3044\u5834\u5408\u306f<code>margin: 0 auto<\/code>\u307e\u305f\u306fflex\/grid\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">position + transform\u3067\u7d76\u5bfe\u914d\u7f6e\u306e\u4e2d\u592e\u5bc4\u305b<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-08\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-08-v3.jpg\" alt=\"position + transform\u3067\u7d76\u5bfe\u914d\u7f6e\u306e\u4e2d\u592e\u5bc4\u305b\" class=\"wp-image-25803\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-08-v3.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-08-v3-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-08-v3-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-08 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-08.jpg\" alt=\"position + transform\u3067\u7d76\u5bfe\u914d\u7f6e\u306e\u4e2d\u592e\u5bc4\u305b\" class=\"wp-image-24443\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-08.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-08-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-08-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-08 -->\n\n\n\n<p class=\"wp-block-paragraph\">\u30e2\u30fc\u30c0\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3084\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3001\u30d5\u30ed\u30fc\u30c6\u30a3\u30f3\u30b0\u30d0\u30ca\u30fc\u306a\u3069\u300c\u89aa\u8981\u7d20\u306e\u4e2d\u592e\u306b\u7d76\u5bfe\u914d\u7f6e\u3057\u305f\u3044\u300d\u30b1\u30fc\u30b9\u3067\u306f\u3001<code>position: absolute<\/code>\u3068<code>transform: translate(-50%, -50%)<\/code>\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u624b\u6cd5\u304c\u5b9a\u756a\u3067\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u624b\u6cd5\u306f\u8981\u7d20\u306e\u30b5\u30a4\u30ba\u304c\u4e0d\u660e\u30fb\u53ef\u5909\u306e\u5834\u5408\u3067\u3082\u78ba\u5b9f\u306b\u4e2d\u592e\u306b\u914d\u7f6e\u3067\u304d\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-markup\" data-lang=\"HTML\"><code>&lt;!-- HTML --&gt;\n&lt;div class=\"parent\"&gt;\n  &lt;div class=\"centered\"&gt;\n    &lt;p&gt;\u30e2\u30fc\u30c0\u30eb\u306e\u4e2d\u8eab&lt;\/p&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre><\/div>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* CSS *\/\n.parent {\n  position: relative; \/* \u57fa\u6e96\u3068\u306a\u308b\u89aa\u8981\u7d20 *\/\n  width: 100%;\n  height: 400px;\n  background: rgba(0,0,0,0.5);\n}\n\n.centered {\n  position: absolute;\n  top: 50%;               \/* \u4e0a\u304b\u308950%\u306e\u4f4d\u7f6e\uff08\u8981\u7d20\u306e\u4e0a\u7aef\u304c\u4e2d\u592e\uff09 *\/\n  left: 50%;              \/* \u5de6\u304b\u308950%\u306e\u4f4d\u7f6e\uff08\u8981\u7d20\u306e\u5de6\u7aef\u304c\u4e2d\u592e\uff09 *\/\n  transform: translate(-50%, -50%); \/* \u8981\u7d20\u306e\u4e2d\u5fc3\u304c\u89aa\u306e\u4e2d\u592e\u306b\u306a\u308b\u3088\u3046\u88dc\u6b63 *\/\n  background: #fff;\n  padding: 40px;\n  border-radius: 8px;\n  box-shadow: 0 4px 20px rgba(0,0,0,0.2);\n}<\/code><\/pre><\/div>\n\n<p class=\"wp-block-paragraph\"><code>top: 50%; left: 50%<\/code>\u3060\u3051\u3067\u306f\u8981\u7d20\u306e\u300c\u5de6\u4e0a\u89d2\u300d\u304c\u4e2d\u592e\u306b\u6765\u307e\u3059\u3002<code>transform: translate(-50%, -50%)<\/code>\u3067\u8981\u7d20\u306e\u5e45\u306e50%\u30fb\u9ad8\u3055\u306e50%\u5206\u3060\u3051\u305a\u3089\u3059\u3053\u3068\u3067\u3001\u8981\u7d20\u306e\u300c\u4e2d\u5fc3\u300d\u304c\u89aa\u306e\u4e2d\u592e\u306b\u6765\u307e\u3059\u3002<\/p>\n\n<p class=\"wp-block-paragraph\">\u753b\u9762\u5168\u4f53\u306e\u4e2d\u592e\u306b\u56fa\u5b9a\u8868\u793a\u3059\u308b\u5834\u5408\u306f<code>position: fixed<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u753b\u9762\u5168\u4f53\u306e\u4e2d\u592e\u306b\u56fa\u5b9a\u8868\u793a\uff08\u30e2\u30fc\u30c0\u30eb\u7b49\uff09 *\/\n.modal {\n  position: fixed;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  z-index: 1000;\n  background: #fff;\n  padding: 40px;\n  border-radius: 8px;\n  width: 90%;\n  max-width: 600px;\n}<\/code><\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u624b\u6cd5\u306e\u4f7f\u3044\u5206\u3051\u65e9\u898b\u8868<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-09\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-09-v2.jpg\" alt=\"\u624b\u6cd5\u306e\u4f7f\u3044\u5206\u3051\u65e9\u898b\u8868\" class=\"wp-image-25804\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-09-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-09-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-09-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-09 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-09.jpg\" alt=\"\u624b\u6cd5\u306e\u4f7f\u3044\u5206\u3051\u65e9\u898b\u8868\" class=\"wp-image-24444\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-09.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-09-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-09-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-09 -->\n\n\n\n<p class=\"wp-block-paragraph\">\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u4f7f\u3046\u3079\u304d\u624b\u6cd5\u304c\u5909\u308f\u308a\u307e\u3059\u3002\u4e0b\u306e\u65e9\u898b\u8868\u3067\u3001\u3069\u306e\u30b1\u30fc\u30b9\u306b\u3069\u306e\u624b\u6cd5\u3092\u4f7f\u3048\u3070\u3044\u3044\u304b\u3092\u4e00\u89a7\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n<figure class=\"wp-block-table\"><table>\n<thead>\n<tr>\n<th>\u3084\u308a\u305f\u3044\u3053\u3068<\/th>\n<th>\u63a8\u5968\u624b\u6cd5<\/th>\n<th>CSS\u30d7\u30ed\u30d1\u30c6\u30a3<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u3092\u6c34\u5e73\u4e2d\u592e\uff08\u5e45\u56fa\u5b9a\uff09<\/td>\n<td>margin auto<\/td>\n<td><code>margin: 0 auto<\/code> + <code>width<\/code>\u6307\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>\u30c6\u30ad\u30b9\u30c8\u30fb\u30dc\u30bf\u30f3\u3092\u6c34\u5e73\u4e2d\u592e<\/td>\n<td>text-align<\/td>\n<td><code>text-align: center<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u5b50\u8981\u7d20\u3092\u6c34\u5e73\u4e2d\u592e\uff08flex\uff09<\/td>\n<td>flexbox<\/td>\n<td><code>display: flex; justify-content: center<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u5b50\u8981\u7d20\u3092\u5782\u76f4\u4e2d\u592e\uff08flex\uff09<\/td>\n<td>flexbox<\/td>\n<td><code>display: flex; align-items: center<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u4e0a\u4e0b\u5de6\u53f3\u306e\u5b8c\u5168\u4e2d\u592e\uff08flex\uff09<\/td>\n<td>flexbox<\/td>\n<td><code>display: flex; justify-content: center; align-items: center<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u4e0a\u4e0b\u5de6\u53f3\u306e\u5b8c\u5168\u4e2d\u592e\uff08grid\u30fb\u6700\u77ed\uff09<\/td>\n<td>grid<\/td>\n<td><code>display: grid; place-items: center<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u7d76\u5bfe\u914d\u7f6e\u3067\u89aa\u306e\u4e2d\u592e\u306b<\/td>\n<td>position + transform<\/td>\n<td><code>position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%)<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u753b\u9762\u5168\u4f53\u306e\u4e2d\u592e\u306b\u56fa\u5b9a\u8868\u793a<\/td>\n<td>position: fixed + transform<\/td>\n<td><code>position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%)<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/figure>\n\n\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u5931\u6557\u3068\u5bfe\u51e6\u6cd5<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-10\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-10-v3.jpg\" alt=\"\u3088\u304f\u3042\u308b\u5931\u6557\u3068\u5bfe\u51e6\u6cd5\" class=\"wp-image-25805\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-10-v3.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-10-v3-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-10-v3-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-10 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-10.jpg\" alt=\"\u3088\u304f\u3042\u308b\u5931\u6557\u3068\u5bfe\u51e6\u6cd5\" class=\"wp-image-24445\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-10.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-10-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-10-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-10 -->\n\n\n\n<h3 class=\"wp-block-heading\">\u5931\u65571\uff1amargin: 0 auto\u3092\u6307\u5b9a\u3057\u3066\u3082width\u304c\u306a\u3044\u306e\u3067\u52b9\u304b\u306a\u3044<\/h3>\n\n<p class=\"wp-block-paragraph\"><code>margin: 0 auto<\/code>\u306fwidth\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u306b\u306f\u52b9\u304d\u307e\u305b\u3093\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u89aa\u8981\u7d20\u306e\u5e45100%\u3092\u5360\u3081\u308b\u305f\u3081\u3001\u300c\u5de6\u53f3\u306b\u4f59\u767d\u304c\u306a\u3044\uff1d\u4e2d\u592e\u5bc4\u305b\u4e0d\u8981\u300d\u3068\u5224\u65ad\u3055\u308c\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* NG: width\u306a\u3057\u306fmargin: auto\u304c\u52b9\u304b\u306a\u3044 *\/\n.box {\n  margin: 0 auto; \/* \u2190 width\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u610f\u5473\u304c\u306a\u3044 *\/\n}\n\n\/* OK: width\u3092\u6307\u5b9a\u3059\u308b *\/\n.box {\n  width: 600px;\n  max-width: 100%;\n  margin: 0 auto;\n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u5931\u65572\uff1aflexbox\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u306b\u5782\u76f4\u4e2d\u592e\u306b\u306a\u3089\u306a\u3044\uff08\u9ad8\u3055\u304c\u672a\u6307\u5b9a\uff09<\/h3>\n\n<p class=\"wp-block-paragraph\"><code>align-items: center<\/code>\u3092\u6307\u5b9a\u3057\u3066\u3082\u3001\u89aa\u8981\u7d20\u306e\u9ad8\u3055\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u5782\u76f4\u4e2d\u592e\u306f\u610f\u5473\u3092\u306a\u3057\u307e\u305b\u3093\u3002\u89aa\u306e\u9ad8\u3055\u304c\u30b3\u30f3\u30c6\u30f3\u30c4\u3068\u540c\u3058\u3067\u3042\u308c\u3070\u3001\u300c\u4e2d\u592e\u300d\u306b\u7f6e\u3044\u3066\u3082\u5909\u5316\u304c\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* NG: \u89aa\u306b\u9ad8\u3055\u304c\u306a\u3044 *\/\n.parent {\n  display: flex;\n  align-items: center; \/* \u9ad8\u3055\u304c\u306a\u3044\u3068\u52b9\u679c\u304c\u898b\u3048\u306a\u3044 *\/\n}\n\n\/* OK: \u9ad8\u3055\u3092\u660e\u793a\u3059\u308b *\/\n.parent {\n  display: flex;\n  align-items: center;\n  height: 400px; \/* \u307e\u305f\u306f min-height: 100vh \u306a\u3069 *\/\n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u5931\u65573\uff1atext-align: center\u304cdisplay: block\u306e\u5b50\u8981\u7d20\u306b\u52b9\u304b\u306a\u3044<\/h3>\n\n<p class=\"wp-block-paragraph\"><code>text-align: center<\/code>\u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u30fb\u30a4\u30f3\u30e9\u30a4\u30f3\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u306b\u3057\u304b\u52b9\u304d\u307e\u305b\u3093\u3002<code>display: block<\/code>\u306e\u8981\u7d20\uff08div\u306a\u3069\uff09\u306b\u306f\u52b9\u304b\u306a\u3044\u305f\u3081\u3001\u30d6\u30ed\u30c3\u30af\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u3057\u305f\u3044\u5834\u5408\u306f<code>margin: 0 auto<\/code>\u304bflex\/grid\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* NG: display:block\u306e\u5b50\u8981\u7d20\u306b\u306ftext-align\u304c\u52b9\u304b\u306a\u3044 *\/\n.parent {\n  text-align: center;\n}\n.child {\n  display: block; \/* \u2190 \u30d6\u30ed\u30c3\u30af\u8981\u7d20\u306a\u306e\u3067text-align\u306f\u7121\u52b9 *\/\n  width: 200px;\n}\n\n\/* OK: \u30a4\u30f3\u30e9\u30a4\u30f3\u30d6\u30ed\u30c3\u30af\u306b\u3059\u308b *\/\n.child {\n  display: inline-block; \/* \u3053\u308c\u3067text-align: center\u304c\u52b9\u304f *\/\n  width: 200px;\n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u5931\u65574\uff1aposition: absolute\u3067\u89aa\u306bposition: relative\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044<\/h3>\n\n<p class=\"wp-block-paragraph\"><code>position: absolute<\/code>\u306e\u8981\u7d20\u306f\u3001\u6700\u3082\u8fd1\u3044\u300c<code>position: static<\/code>\u4ee5\u5916\u306e\u7956\u5148\u8981\u7d20\u300d\u3092\u57fa\u6e96\u306b\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002\u89aa\u8981\u7d20\u306b<code>position: relative<\/code>\u304c\u306a\u3044\u3068\u3001\u601d\u308f\u306c\u7956\u5148\u8981\u7d20\uff08body\u306a\u3069\uff09\u3092\u57fa\u6e96\u306b\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* NG: \u89aa\u306bposition\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044 *\/\n.parent {\n  \/* position\u6307\u5b9a\u306a\u3057 \u2190 body\u3084html\u7b49\u304c\u57fa\u6e96\u306b\u306a\u3063\u3066\u3057\u307e\u3046 *\/\n}\n.child {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n}\n\n\/* OK: \u89aa\u306bposition: relative\u3092\u8a2d\u5b9a *\/\n.parent {\n  position: relative; \/* \u2190 \u3053\u308c\u304c\u57fa\u6e96\u306b\u306a\u308b *\/\n  height: 400px;\n}\n.child {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u5931\u65575\uff1a\u30b9\u30de\u30db\u3067\u4e2d\u592e\u5bc4\u305b\u304c\u5d29\u308c\u308b\uff08box-sizing\u306e\u554f\u984c\uff09<\/h3>\n\n<p class=\"wp-block-paragraph\">width\u3068padding\u304c\u5408\u308f\u3055\u3063\u3066\u8981\u7d20\u306e\u5e45\u304c\u89aa\u3092\u8d85\u3048\u3066\u3057\u307e\u3044\u3001\u4e2d\u592e\u5bc4\u305b\u304c\u5d29\u308c\u308b\u30b1\u30fc\u30b9\u3067\u3059\u3002<code>box-sizing: border-box<\/code>\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067padding\u3092width\u5185\u306b\u53ce\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u5168\u8981\u7d20\u306bbox-sizing\u3092\u9069\u7528\uff08\u30ea\u30bb\u30c3\u30c8CSS\u3068\u3057\u3066\u5148\u982d\u306b\u8a18\u8ff0\uff09 *\/\n*,\n*::before,\n*::after {\n  box-sizing: border-box;\n}\n\n.box {\n  width: 100%;\n  padding: 20px; \/* border-box\u306a\u306e\u3067width\u306b\u542b\u307e\u308c\u308b *\/\n  margin: 0 auto;\n}<\/code><\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u8cea\u554f\uff08FAQ\uff09<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-11\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-11-v3.jpg\" alt=\"\u3088\u304f\u3042\u308b\u8cea\u554f\uff08FAQ\uff09\" class=\"wp-image-25806\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-11-v3.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-11-v3-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-11-v3-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-11 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-11.jpg\" alt=\"\u3088\u304f\u3042\u308b\u8cea\u554f\uff08FAQ\uff09\" class=\"wp-image-24446\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-11.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-11-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-11-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-11 -->\n\n<h3 class=\"wp-block-heading\">Q1. flexbox\u3068grid\u306e\u3069\u3061\u3089\u3092\u4e2d\u592e\u5bc4\u305b\u306b\u4f7f\u3048\u3070\u3044\u3044\u3067\u3059\u304b\uff1f<\/h3>\n\n<p class=\"wp-block-paragraph\">1\u3064\u306e\u8981\u7d20\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u4e2d\u592e\u306b\u7f6e\u304f\u3060\u3051\u306a\u3089<code>display: grid; place-items: center<\/code>\u304c\u30b3\u30fc\u30c9\u304c\u6700\u3082\u77ed\u304f\u3066\u3059\u3063\u304d\u308a\u3057\u3066\u3044\u307e\u3059\u3002\u8907\u6570\u306e\u5b50\u8981\u7d20\u3092\u6a2a\u30fb\u7e26\u306b\u4e26\u3079\u306a\u304c\u3089\u4e2d\u592e\u5bc4\u305b\u3057\u305f\u3044\u5834\u5408\u3084\u3001\u7d30\u304b\u3044\u914d\u7f6e\u5236\u5fa1\u304c\u5fc5\u8981\u306a\u5834\u5408\u306fflexbox\u304c\u5411\u3044\u3066\u3044\u307e\u3059\u30022026\u5e74\u73fe\u5728\u306f\u3069\u3061\u3089\u3082\u4e3b\u8981\u30d6\u30e9\u30a6\u30b6\u3067\u5b8c\u5168\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30c1\u30fc\u30e0\u306e\u66f8\u304d\u65b9\u306b\u5408\u308f\u305b\u3066\u9078\u3093\u3067\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n<h3 class=\"wp-block-heading\">Q2. \u7e26\u65b9\u5411\u306e\u4e2d\u592e\u5bc4\u305b\u304c\u3069\u3046\u3057\u3066\u3082\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3002\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8\u306f\uff1f<\/h3>\n\n<p class=\"wp-block-paragraph\">\u7e26\u65b9\u5411\uff08\u5782\u76f4\uff09\u306e\u4e2d\u592e\u5bc4\u305b\u304c\u52b9\u304b\u306a\u3044\u539f\u56e0\u306e\u5927\u534a\u306f\u300c\u89aa\u8981\u7d20\u306b\u9ad8\u3055\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u300d\u3053\u3068\u3067\u3059\u3002<code>align-items: center<\/code>\u3084<code>place-items: center<\/code>\u3092\u6307\u5b9a\u3057\u3066\u3082\u3001\u89aa\u306e\u9ad8\u3055\u304c\u30b3\u30f3\u30c6\u30f3\u30c4\u3068\u540c\u3058\u3067\u3042\u308c\u3070\u898b\u305f\u76ee\u306b\u5909\u5316\u304c\u51fa\u307e\u305b\u3093\u3002\u89aa\u8981\u7d20\u306b<code>height<\/code>\u307e\u305f\u306f<code>min-height<\/code>\u3092\u660e\u793a\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n<h3 class=\"wp-block-heading\">Q3. \u30a4\u30f3\u30e9\u30a4\u30f3\u306esvg\u30a2\u30a4\u30b3\u30f3\u3092\u30c6\u30ad\u30b9\u30c8\u3068\u7e26\u65b9\u5411\u306b\u63c3\u3048\u308b\u65b9\u6cd5\u306f\uff1f<\/h3>\n\n<p class=\"wp-block-paragraph\">\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\uff08svg\u3084img\uff09\u3068\u30c6\u30ad\u30b9\u30c8\u3092\u7e26\u65b9\u5411\u306b\u63c3\u3048\u308b\u306b\u306f<code>vertical-align: middle<\/code>\u304c\u624b\u8efd\u3067\u3059\u3002\u305f\u3060\u3057\u73fe\u4ee3\u7684\u306a\u66f8\u304d\u65b9\u3067\u306f\u3001\u89aa\u8981\u7d20\u3092flex\u306b\u3057\u3066<code>align-items: center<\/code>\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u304c\u5236\u5fa1\u3057\u3084\u3059\u304f\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u30a2\u30a4\u30b3\u30f3\u3068\u30c6\u30ad\u30b9\u30c8\u3092\u6a2a\u4e26\u3073\u30fb\u7e26\u4e2d\u592e *\/\n.icon-text {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">Q4. \u753b\u50cf\u3092\u89aaDIV\u306e\u4e2d\u592e\u306b\u7f6e\u304f\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f<\/h3>\n\n<p class=\"wp-block-paragraph\">\u89aa\u8981\u7d20\u3092flex\u307e\u305f\u306fgrid\u306b\u3059\u308b\u306e\u304c\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002<code>display: flex; justify-content: center; align-items: center<\/code>\u3067\u753b\u50cf\u3092\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u306b\u7f6e\u3051\u307e\u3059\u3002img\u30bf\u30b0\u81ea\u4f53\u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u306a\u306e\u3067\u3001<code>display: block; margin: 0 auto<\/code>\u3067\u3082\u6c34\u5e73\u4e2d\u592e\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>\/* \u65b9\u6cd51: \u89aa\u3092flex\u306b\u3059\u308b *\/\n.img-wrap {\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n\/* \u65b9\u6cd52: img\u3092\u30d6\u30ed\u30c3\u30af\u306b\u3057\u3066margin: auto *\/\nimg {\n  display: block;\n  margin: 0 auto;\n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">Q5. position: absolute\u3067\u4e2d\u592e\u306b\u3057\u305f\u3044\u8981\u7d20\u306e\u30b5\u30a4\u30ba\u304c\u5909\u52d5\u3059\u308b\u5834\u5408\u306f\u3069\u3046\u3057\u307e\u3059\u304b\uff1f<\/h3>\n\n<p class=\"wp-block-paragraph\">\u30b5\u30a4\u30ba\u304c\u56fa\u5b9a\u3067\u306a\u3044\u5834\u5408\u3082<code>transform: translate(-50%, -50%)<\/code>\u3067\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002transform\u306f\u300c\u81ea\u8eab\u306e\u5e45\u30fb\u9ad8\u3055\u306b\u5bfe\u3059\u308b\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\u300d\u3067\u8a08\u7b97\u3055\u308c\u308b\u305f\u3081\u3001\u30b5\u30a4\u30ba\u304c\u5909\u308f\u3063\u3066\u3082\u5e38\u306b\u8981\u7d20\u306e\u4e2d\u5fc3\u304c\u57fa\u6e96\u70b9\u306b\u306a\u308a\u307e\u3059\u3002\u53e4\u3044\u624b\u6cd5\u306e<code>margin-left: -width\/2<\/code>\u306a\u3069\u306f\u56fa\u5b9a\u30b5\u30a4\u30ba\u304c\u5fc5\u8981\u3067\u3057\u305f\u304c\u3001transform\u3067\u306f\u305d\u306e\u5236\u7d04\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<!-- roam:v2 -->\n<p class=\"wp-block-paragraph\">\u4e2d\u592e\u5bc4\u305b\u3068\u5408\u308f\u305b\u3066\u914d\u8272\u3082\u6574\u3048\u305f\u3044\u3068\u304d\u306f\u3001<a href=\"https:\/\/withcode.tech\/media\/css-color-change\/\">HTML\u30fbCSS\u3067\u6587\u5b57\u8272\u3092\u5909\u3048\u308b\u65b9\u6cd5<\/a>\u3082\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304a\u304f\u3068\u3001\u898b\u51fa\u3057\u3084\u30c6\u30ad\u30b9\u30c8\u306e\u898b\u305b\u65b9\u306e\u5e45\u304c\u5e83\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n<!-- withmedia-related -->\n\n\n\n<!-- withmedia-faq-schema -->\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"flexbox\u3068grid\u306e\u3069\u3061\u3089\u3092\u4e2d\u592e\u5bc4\u305b\u306b\u4f7f\u3048\u3070\u3044\u3044\u3067\u3059\u304b\uff1f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"1\u3064\u306e\u8981\u7d20\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u4e2d\u592e\u306b\u7f6e\u304f\u3060\u3051\u306a\u3089display: grid; place-items: center\u304c\u30b3\u30fc\u30c9\u304c\u6700\u3082\u77ed\u304f\u3066\u3059\u3063\u304d\u308a\u3057\u3066\u3044\u307e\u3059\u3002\u8907\u6570\u306e\u5b50\u8981\u7d20\u3092\u6a2a\u30fb\u7e26\u306b\u4e26\u3079\u306a\u304c\u3089\u4e2d\u592e\u5bc4\u305b\u3057\u305f\u3044\u5834\u5408\u3084\u3001\u7d30\u304b\u3044\u914d\u7f6e\u5236\u5fa1\u304c\u5fc5\u8981\u306a\u5834\u5408\u306fflexbox\u304c\u5411\u3044\u3066\u3044\u307e\u3059\u30022026\u5e74\u73fe\u5728\u306f\u3069\u3061\u3089\u3082\u4e3b\u8981\u30d6\u30e9\u30a6\u30b6\u3067\u5b8c\u5168\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30c1\u30fc\u30e0\u306e\u66f8\u304d\u65b9\u306b\u5408\u308f\u305b\u3066\u9078\u3093\u3067\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\"}}, {\"@type\": \"Question\", \"name\": \"\u7e26\u65b9\u5411\u306e\u4e2d\u592e\u5bc4\u305b\u304c\u3069\u3046\u3057\u3066\u3082\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3002\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8\u306f\uff1f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"\u7e26\u65b9\u5411\uff08\u5782\u76f4\uff09\u306e\u4e2d\u592e\u5bc4\u305b\u304c\u52b9\u304b\u306a\u3044\u539f\u56e0\u306e\u5927\u534a\u306f\u300c\u89aa\u8981\u7d20\u306b\u9ad8\u3055\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u300d\u3053\u3068\u3067\u3059\u3002align-items: center\u3084place-items: center\u3092\u6307\u5b9a\u3057\u3066\u3082\u3001\u89aa\u306e\u9ad8\u3055\u304c\u30b3\u30f3\u30c6\u30f3\u30c4\u3068\u540c\u3058\u3067\u3042\u308c\u3070\u898b\u305f\u76ee\u306b\u5909\u5316\u304c\u51fa\u307e\u305b\u3093\u3002\u89aa\u8981\u7d20\u306bheight\u307e\u305f\u306fmin-height\u3092\u660e\u793a\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\"}}, {\"@type\": \"Question\", \"name\": \"\u30a4\u30f3\u30e9\u30a4\u30f3\u306esvg\u30a2\u30a4\u30b3\u30f3\u3092\u30c6\u30ad\u30b9\u30c8\u3068\u7e26\u65b9\u5411\u306b\u63c3\u3048\u308b\u65b9\u6cd5\u306f\uff1f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\uff08svg\u3084img\uff09\u3068\u30c6\u30ad\u30b9\u30c8\u3092\u7e26\u65b9\u5411\u306b\u63c3\u3048\u308b\u306b\u306fvertical-align: middle\u304c\u624b\u8efd\u3067\u3059\u3002\u305f\u3060\u3057\u73fe\u4ee3\u7684\u306a\u66f8\u304d\u65b9\u3067\u306f\u3001\u89aa\u8981\u7d20\u3092flex\u306b\u3057\u3066align-items: center\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u304c\u5236\u5fa1\u3057\u3084\u3059\u304f\u304a\u3059\u3059\u3081\u3067\u3059\u3002\"}}, {\"@type\": \"Question\", \"name\": \"\u753b\u50cf\u3092\u89aaDIV\u306e\u4e2d\u592e\u306b\u7f6e\u304f\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"\u89aa\u8981\u7d20\u3092flex\u307e\u305f\u306fgrid\u306b\u3059\u308b\u306e\u304c\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002display: flex; justify-content: center; align-items: center\u3067\u753b\u50cf\u3092\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u306b\u7f6e\u3051\u307e\u3059\u3002img\u30bf\u30b0\u81ea\u4f53\u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u306a\u306e\u3067\u3001display: block; margin: 0 auto\u3067\u3082\u6c34\u5e73\u4e2d\u592e\u306b\u3067\u304d\u307e\u3059\u3002\"}}, {\"@type\": \"Question\", \"name\": \"position: absolute\u3067\u4e2d\u592e\u306b\u3057\u305f\u3044\u8981\u7d20\u306e\u30b5\u30a4\u30ba\u304c\u5909\u52d5\u3059\u308b\u5834\u5408\u306f\u3069\u3046\u3057\u307e\u3059\u304b\uff1f\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"\u30b5\u30a4\u30ba\u304c\u56fa\u5b9a\u3067\u306a\u3044\u5834\u5408\u3082transform: translate(-50%, -50%)\u3067\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002transform\u306f\u300c\u81ea\u8eab\u306e\u5e45\u30fb\u9ad8\u3055\u306b\u5bfe\u3059\u308b\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\u300d\u3067\u8a08\u7b97\u3055\u308c\u308b\u305f\u3081\u3001\u30b5\u30a4\u30ba\u304c\u5909\u308f\u3063\u3066\u3082\u5e38\u306b\u8981\u7d20\u306e\u4e2d\u5fc3\u304c\u57fa\u6e96\u70b9\u306b\u306a\u308a\u307e\u3059\u3002\u53e4\u3044\u624b\u6cd5\u306emargin-left: -width\/2\u306a\u3069\u306f\u56fa\u5b9a\u30b5\u30a4\u30ba\u304c\u5fc5\u8981\u3067\u3057\u305f\u304c\u3001transform\u3067\u306f\u305d\u306e\u5236\u7d04\u304c\u3042\u308a\u307e\u305b\u3093\u3002\"}}]}<\/script>\n\n\n\n<h2 class=\"wp-block-heading\">\u95a2\u9023\u8a18\u4e8b<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-12\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-12-v2.jpg\" alt=\"\u95a2\u9023\u8a18\u4e8b\" class=\"wp-image-25807\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-12-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-12-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-12-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-12 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-12.jpg\" alt=\"\u95a2\u9023\u8a18\u4e8b\" class=\"wp-image-24447\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-12.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-12-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-12-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-12 -->\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/withcode.tech\/media\/flex-box-layout\/\">Flexbox\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c2026\u5e74\u7248\u30ec\u30a4\u30a2\u30a6\u30c8\u5b9f\u88c5\u30c1\u30fc\u30c8\u30b7\u30fc\u30c8<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/grid-layout-webdesign\/\">CSS\u30b0\u30ea\u30c3\u30c9\u30ec\u30a4\u30a2\u30a6\u30c8\u5b8c\u5168\u30ac\u30a4\u30c9\u30102026\u5e74\u7248\u3011\u5b9f\u88c5\u4f8b\u4ed8\u304d<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-flexbox-grid-guide\/\">CSS Flexbox\u3068Grid\u3092\u4f7f\u3044\u5206\u3051\u308b\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u5b9f\u6848\u4ef6\u3067\u5f79\u7acb\u3064\u30ec\u30a4\u30a2\u30a6\u30c8\u5b9f\u88c5\u306e\u57fa\u672c<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-absolute-relative\/\">CSS\u306eposition absolute\/relative\u5b8c\u5168\u30ac\u30a4\u30c9\u30102026\u5e74\u7248\u3011<\/a><\/li>\n<li><a href=\"https:\/\/withcode.tech\/media\/css-modern-ui-components-30\/\">\u3010\u30b3\u30d4\u30da\u53ef\u3011CSS\u3060\u3051\u3067\u4f5c\u308b\u30e2\u30c0\u30f3UI\u30d1\u30fc\u30c430\u9078\uff5c\u5b9f\u88c5\u30b3\u30fc\u30c9\u5168\u90e8\u8f09\u305b<\/a><\/li>\n<\/ul>\n\n\n\n\n<h2 class=\"wp-block-heading\">CSS\u30fbWeb\u30c7\u30b6\u30a4\u30f3\u5b9f\u88c5\u306e\u7dcf\u307e\u3068\u3081<\/h2>\n\n<figure class=\"wp-block-image size-large vizmedia-hightraffic\" data-vizmedia-hightraffic=\"18114-h2-13\"><img decoding=\"async\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-13-v2.jpg\" alt=\"CSS\u30fbWeb\u30c7\u30b6\u30a4\u30f3\u5b9f\u88c5\u306e\u7dcf\u307e\u3068\u3081\" class=\"wp-image-25808\" width=\"1672\" height=\"941\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-13-v2.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-13-v2-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-h2-13-v2-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n\n<!-- vizmedia-batch34-quality:start:css-centering-13 --><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1672\" height=\"941\" src=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-13.jpg\" alt=\"CSS\u30fbWeb\u30c7\u30b6\u30a4\u30f3\u5b9f\u88c5\u306e\u7dcf\u307e\u3068\u3081\" class=\"wp-image-24448\" srcset=\"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-13.jpg 1672w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-13-768x432.jpg 768w, https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-quality-v2-h2-13-1536x864.jpg 1536w\" sizes=\"(max-width: 1672px) 100vw, 1672px\" \/><\/figure>\n<!-- vizmedia-batch34-quality:end:css-centering-13 -->\n\n\n\n<p class=\"wp-block-paragraph\">CSS\u306e\u5b9f\u88c5\u30c6\u30af\u30cb\u30c3\u30af\u3092\u300c\u30ec\u30a4\u30a2\u30a6\u30c8\u30fb\u88c5\u98fe\u30fb\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30fb\u57fa\u790e\u30fb\u30c8\u30e9\u30d6\u30eb\u89e3\u6c7a\u300d\u306e\u76ee\u7684\u5225\u306b\u63a2\u305b\u308b\u7dcf\u307e\u3068\u3081\u30da\u30fc\u30b8\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u88c5\u3067\u8ff7\u3063\u305f\u3068\u304d\u306e\u7d22\u5f15\u3068\u3057\u3066\u3069\u3046\u305e\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/withcode.tech\/media\/css-webdesign-technique-map\/\">\u3010CSS\u5b9f\u88c5\u30c6\u30af\u30cb\u30c3\u30af\u5b8c\u5168\u30de\u30c3\u30d7\u3011\u30b3\u30d4\u30da\u3067\u4f7f\u3048\u308bWeb\u30c7\u30b6\u30a4\u30f3\u5b9f\u88c5\u30ac\u30a4\u30c9\u7dcf\u307e\u3068\u3081<\/a><\/li>\n<\/ul>\n\n\n\n<!-- addon:newlink-lh-v1 -->\n<p class=\"wp-block-paragraph\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044\uff1a<a href=\"https:\/\/withcode.tech\/media\/css-line-height-letter-spacing\/\">CSS\u3067\u884c\u9593\u30fb\u5b57\u9593\u3092\u8abf\u6574\u3059\u308b\u65b9\u6cd5\uff5cline-height\u3068letter-spacing<\/a><\/p>\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>","protected":false},"excerpt":{"rendered":"<p>CSS\u3067\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002Flexbox\u3001Grid\u3001margin\u3001text-align\u3001position\u3092\u4f7f\u3063\u305f\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u914d\u7f6e\u3068\u3001\u305a\u308c\u308b\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"author":18,"featured_media":25809,"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":""},"categories":[361],"tags":[],"class_list":["post-18114","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"CSS\u3067\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002Flexbox\u3001Grid\u3001margin\u3001text-align\u3001position\u3092\u4f7f\u3063\u305f\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u914d\u7f6e\u3068\u3001\u305a\u308c\u308b\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=\"\u7530\u4e2d\u8aa0\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/withcode.tech\/media\/css-centering\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\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\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b\" \/>\n\t\t<meta property=\"og:description\" content=\"CSS\u3067\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002Flexbox\u3001Grid\u3001margin\u3001text-align\u3001position\u3092\u4f7f\u3063\u305f\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u914d\u7f6e\u3068\u3001\u305a\u308c\u308b\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/withcode.tech\/media\/css-centering\/\" \/>\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=\"2026-07-14T16:29:16+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-10-16T09:35:53+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\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b\" \/>\n\t\t<meta name=\"twitter:description\" content=\"CSS\u3067\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002Flexbox\u3001Grid\u3001margin\u3001text-align\u3001position\u3092\u4f7f\u3063\u305f\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u914d\u7f6e\u3068\u3001\u305a\u308c\u308b\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-centering\\\/#blogposting\",\"name\":\"CSS\\u3067\\u4e2d\\u592e\\u5bc4\\u305b\\u3059\\u308b\\u65b9\\u6cd5\\uff5c\\u6a2a\\u30fb\\u7e26\\u30fb\\u4e0a\\u4e0b\\u5de6\\u53f3\\u306e\\u30b3\\u30d4\\u30da\\u4f8b\",\"headline\":\"CSS\\u3067\\u4e2d\\u592e\\u5bc4\\u305b\\u3059\\u308b\\u65b9\\u6cd5\\uff5c\\u6a2a\\u30fb\\u7e26\\u30fb\\u4e0a\\u4e0b\\u5de6\\u53f3\\u306e\\u30b3\\u30d4\\u30da\\u4f8b\",\"author\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/tanaka_editor\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/css-centering-eyecatch-v2.jpg\",\"width\":1672,\"height\":941,\"caption\":\"\\u30102026\\u5e74\\u7248\\u3011CSS\\u4e2d\\u592e\\u5bc4\\u305b\\u306e\\u5b8c\\u5168\\u30ac\\u30a4\\u30c9\\uff5c\\u6a2a\\u30fb\\u7e26\\u30fb\\u4e0a\\u4e0b\\u5de6\\u53f3\\u3092\\u30b3\\u30d4\\u30da\\u3067\\u4e00\\u767a\\u30bb\\u30f3\\u30bf\\u30ea\\u30f3\\u30b0\"},\"datePublished\":\"2026-07-14T16:29:16+00:00\",\"dateModified\":\"2026-10-16T09:35:53+00:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-centering\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-centering\\\/#webpage\"},\"articleSection\":\"CSS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-centering\\\/#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-centering\\\/#listItem\",\"name\":\"CSS\\u3067\\u4e2d\\u592e\\u5bc4\\u305b\\u3059\\u308b\\u65b9\\u6cd5\\uff5c\\u6a2a\\u30fb\\u7e26\\u30fb\\u4e0a\\u4e0b\\u5de6\\u53f3\\u306e\\u30b3\\u30d4\\u30da\\u4f8b\"},\"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-centering\\\/#listItem\",\"position\":4,\"name\":\"CSS\\u3067\\u4e2d\\u592e\\u5bc4\\u305b\\u3059\\u308b\\u65b9\\u6cd5\\uff5c\\u6a2a\\u30fb\\u7e26\\u30fb\\u4e0a\\u4e0b\\u5de6\\u53f3\\u306e\\u30b3\\u30d4\\u30da\\u4f8b\",\"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-centering\\\/#organizationLogo\",\"width\":1000,\"height\":1000},\"image\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-centering\\\/#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\\\/tanaka_editor\\\/#author\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/tanaka_editor\\\/\",\"name\":\"\\u7530\\u4e2d\\u8aa0\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-centering\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9f7a6e2c32d8658dcf9941decf32bc52f0dc424014a9ef5b3f92635c3f04ff60?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u7530\\u4e2d\\u8aa0\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-centering\\\/#webpage\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-centering\\\/\",\"name\":\"CSS\\u3067\\u4e2d\\u592e\\u5bc4\\u305b\\u3059\\u308b\\u65b9\\u6cd5\\uff5c\\u6a2a\\u30fb\\u7e26\\u30fb\\u4e0a\\u4e0b\\u5de6\\u53f3\\u306e\\u30b3\\u30d4\\u30da\\u4f8b\",\"description\":\"CSS\\u3067\\u8981\\u7d20\\u3092\\u4e2d\\u592e\\u5bc4\\u305b\\u3059\\u308b\\u65b9\\u6cd5\\u3092\\u5b9f\\u4f8b\\u4ed8\\u304d\\u3067\\u89e3\\u8aac\\u3002Flexbox\\u3001Grid\\u3001margin\\u3001text-align\\u3001position\\u3092\\u4f7f\\u3063\\u305f\\u6a2a\\u30fb\\u7e26\\u30fb\\u4e0a\\u4e0b\\u5de6\\u53f3\\u306e\\u4e2d\\u592e\\u914d\\u7f6e\\u3068\\u3001\\u305a\\u308c\\u308b\\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-centering\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/tanaka_editor\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/author\\\/tanaka_editor\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/withcode.tech\\\/media\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/css-centering-eyecatch-v2.jpg\",\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-centering\\\/#mainImage\",\"width\":1672,\"height\":941,\"caption\":\"\\u30102026\\u5e74\\u7248\\u3011CSS\\u4e2d\\u592e\\u5bc4\\u305b\\u306e\\u5b8c\\u5168\\u30ac\\u30a4\\u30c9\\uff5c\\u6a2a\\u30fb\\u7e26\\u30fb\\u4e0a\\u4e0b\\u5de6\\u53f3\\u3092\\u30b3\\u30d4\\u30da\\u3067\\u4e00\\u767a\\u30bb\\u30f3\\u30bf\\u30ea\\u30f3\\u30b0\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/withcode.tech\\\/media\\\/css-centering\\\/#mainImage\"},\"datePublished\":\"2026-07-14T16:29:16+00:00\",\"dateModified\":\"2026-10-16T09:35:53+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\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b","description":"CSS\u3067\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002Flexbox\u3001Grid\u3001margin\u3001text-align\u3001position\u3092\u4f7f\u3063\u305f\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u914d\u7f6e\u3068\u3001\u305a\u308c\u308b\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002","canonical_url":"https:\/\/withcode.tech\/media\/css-centering\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/withcode.tech\/media\/css-centering\/#blogposting","name":"CSS\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b","headline":"CSS\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b","author":{"@id":"https:\/\/withcode.tech\/media\/author\/tanaka_editor\/#author"},"publisher":{"@id":"https:\/\/withcode.tech\/media\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-eyecatch-v2.jpg","width":1672,"height":941,"caption":"\u30102026\u5e74\u7248\u3011CSS\u4e2d\u592e\u5bc4\u305b\u306e\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u3092\u30b3\u30d4\u30da\u3067\u4e00\u767a\u30bb\u30f3\u30bf\u30ea\u30f3\u30b0"},"datePublished":"2026-07-14T16:29:16+00:00","dateModified":"2026-10-16T09:35:53+00:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/withcode.tech\/media\/css-centering\/#webpage"},"isPartOf":{"@id":"https:\/\/withcode.tech\/media\/css-centering\/#webpage"},"articleSection":"CSS"},{"@type":"BreadcrumbList","@id":"https:\/\/withcode.tech\/media\/css-centering\/#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-centering\/#listItem","name":"CSS\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b"},"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-centering\/#listItem","position":4,"name":"CSS\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b","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-centering\/#organizationLogo","width":1000,"height":1000},"image":{"@id":"https:\/\/withcode.tech\/media\/css-centering\/#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\/tanaka_editor\/#author","url":"https:\/\/withcode.tech\/media\/author\/tanaka_editor\/","name":"\u7530\u4e2d\u8aa0","image":{"@type":"ImageObject","@id":"https:\/\/withcode.tech\/media\/css-centering\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/9f7a6e2c32d8658dcf9941decf32bc52f0dc424014a9ef5b3f92635c3f04ff60?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u7530\u4e2d\u8aa0"}},{"@type":"WebPage","@id":"https:\/\/withcode.tech\/media\/css-centering\/#webpage","url":"https:\/\/withcode.tech\/media\/css-centering\/","name":"CSS\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b","description":"CSS\u3067\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002Flexbox\u3001Grid\u3001margin\u3001text-align\u3001position\u3092\u4f7f\u3063\u305f\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u914d\u7f6e\u3068\u3001\u305a\u308c\u308b\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-centering\/#breadcrumblist"},"author":{"@id":"https:\/\/withcode.tech\/media\/author\/tanaka_editor\/#author"},"creator":{"@id":"https:\/\/withcode.tech\/media\/author\/tanaka_editor\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/withcode.tech\/media\/wp-content\/uploads\/2026\/09\/css-centering-eyecatch-v2.jpg","@id":"https:\/\/withcode.tech\/media\/css-centering\/#mainImage","width":1672,"height":941,"caption":"\u30102026\u5e74\u7248\u3011CSS\u4e2d\u592e\u5bc4\u305b\u306e\u5b8c\u5168\u30ac\u30a4\u30c9\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u3092\u30b3\u30d4\u30da\u3067\u4e00\u767a\u30bb\u30f3\u30bf\u30ea\u30f3\u30b0"},"primaryImageOfPage":{"@id":"https:\/\/withcode.tech\/media\/css-centering\/#mainImage"},"datePublished":"2026-07-14T16:29:16+00:00","dateModified":"2026-10-16T09:35:53+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\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b","og:description":"CSS\u3067\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002Flexbox\u3001Grid\u3001margin\u3001text-align\u3001position\u3092\u4f7f\u3063\u305f\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u914d\u7f6e\u3068\u3001\u305a\u308c\u308b\u539f\u56e0\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002","og:url":"https:\/\/withcode.tech\/media\/css-centering\/","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":"2026-07-14T16:29:16+00:00","article:modified_time":"2026-10-16T09:35:53+00:00","twitter:card":"summary_large_image","twitter:site":"@withcode_tech","twitter:title":"CSS\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b","twitter:description":"CSS\u3067\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002Flexbox\u3001Grid\u3001margin\u3001text-align\u3001position\u3092\u4f7f\u3063\u305f\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u914d\u7f6e\u3068\u3001\u305a\u308c\u308b\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":"18114","title":"CSS\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b","description":"CSS\u3067\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\u3092\u5b9f\u4f8b\u4ed8\u304d\u3067\u89e3\u8aac\u3002Flexbox\u3001Grid\u3001margin\u3001text-align\u3001position\u3092\u4f7f\u3063\u305f\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u4e2d\u592e\u914d\u7f6e\u3068\u3001\u305a\u308c\u308b\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":"2026-07-14 16:23:42","updated":"2026-10-16 09:35: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\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b\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\u3067\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u65b9\u6cd5\uff5c\u6a2a\u30fb\u7e26\u30fb\u4e0a\u4e0b\u5de6\u53f3\u306e\u30b3\u30d4\u30da\u4f8b","link":"https:\/\/withcode.tech\/media\/css-centering\/"}],"_links":{"self":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/18114","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\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/comments?post=18114"}],"version-history":[{"count":23,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/18114\/revisions"}],"predecessor-version":[{"id":28238,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/posts\/18114\/revisions\/28238"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/media\/25809"}],"wp:attachment":[{"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/media?parent=18114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/categories?post=18114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/withcode.tech\/media\/wp-json\/wp\/v2\/tags?post=18114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}