
{"id":6726,"date":"2024-02-09T20:25:37","date_gmt":"2024-02-09T11:25:37","guid":{"rendered":"https:\/\/techmania.jp\/blog\/?p=6726"},"modified":"2025-10-24T22:00:30","modified_gmt":"2025-10-24T13:00:30","slug":"css-margin-padding","status":"publish","type":"post","link":"https:\/\/techmania.jp\/blog\/css-margin-padding\/","title":{"rendered":"CSS\u3010\u4f59\u767d\u306e\u6307\u5b9a\u3011margin\u3068padding\u306e\u9055\u3044\u3068\u4f7f\u3044\u5206\u3051\u3092\u89e3\u8aac"},"content":{"rendered":"<p>\u4f59\u767d\u306fWeb\u30da\u30fc\u30b8\u3092\u898b\u3084\u3059\u304f\u3059\u308b\u3046\u3048\u3067\u91cd\u8981\u3067\u3059\u3002\u3057\u304b\u3057\u3001margin\u3068padding\u304c\u3042\u3063\u3066\u305d\u308c\u305e\u308c\u306b\u30eb\u30fc\u30eb\u304c\u3042\u308a\u2026\u3068\u6df7\u4e71\u3057\u3084\u3059\u304f\u3001\u632b\u6298\u3057\u304b\u3051\u3066\u3044\u308b\u3068\u3044\u3046\u4eba\u3082\u5c11\u306a\u304f\u306a\u3044\u3067\u3057\u3087\u3046\u3002\u305d\u3053\u3067\u672c\u8a18\u4e8b\u3067\u306f\u3001\u4f59\u767d\u306e\u6307\u5b9a\u65b9\u6cd5\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u3001margin\u30fbpadding\u306b\u3064\u3044\u3066\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u3067\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u305c\u3072\u4eca\u5f8c\u306eCSS\u5b66\u7fd2\u306b\u5f79\u7acb\u3066\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">margin\u3068padding\u306e\u9055\u3044<\/h2>\n\n\n<p>\u307e\u305a\u3001\u4e21\u8005\u306e\u9055\u3044\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u8981\u7d20\u306e\u69cb\u9020\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n<div style=\"margin-top:4%;\">\r\n<a href=\"https:\/\/techmania.jp\/\"><p style=\"text-align:center; font-weight:bold; color:black; text-decoration:underline black;\">\u3042\u306a\u305f\u306e\u3054\u5e0c\u671b\u306b\u6cbf\u3063\u305f\u6848\u4ef6\u304c<span style=\"color: red;\">\u5fc5\u305a<\/span>\u898b\u3064\u304b\u308a\u307e\u3059<br>\u3010\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u5411\u3051\u3011<span style=\"color: red;\">\u9ad8\u53ce\u5165<\/span><span style=\"color: black;\">\u30fb<\/span><span style=\"color: blue;\">\u597d\u5f85\u9047<\/span><span style=\"color: black;\">\u306e\u6848\u4ef6\u3092\u3054\u7d39\u4ecb<\/span><\/p><\/a>\r\n<\/div>\r\n\r\n<div style=\"text-align:center; margin-top:1%;\"><a href=\"https:\/\/techmania.jp\/\"><img decoding=\"async\" style=\"filter:drop-shadow(0px 0px 2px rgba(0,0,0,0.3));width:300px;\" alt=\"TECH MANIA \u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\" src=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2024\/02\/neko.png\"><\/a>\r\n<\/div>\r\n\r\n<div style=\"margin-top:0%;\">\r\n<a href=\"https:\/\/techmania.jp\/\"><p style=\"text-align:center; font-weight:bold; color:black; text-decoration:underline black;\">\u226b\u307e\u305a\u306f\u7c21\u5358<span style=\"color: blue;\">60<\/span>\u79d2\u3067<span style=\"color: red;\">\u7121\u6599\u304a\u554f\u3044\u5408\u308f\u305b<\/span>\u304b\u3089\u226a<\/p><\/a>\r\n<\/div>\n\n\n\n<h3 id=\"outline__1_1\" class=\"wp-block-heading\">\u8981\u7d20\u306e\u69cb\u9020<\/h3>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm19.png\" class=\"post-img\">\n\n\n<p>\u4e0a\u56f3\u306e\u3088\u3046\u306b\u3001\u8d64\u8272\u306e\u67a0\u7dda\u300cborder\uff08\u8981\u7d20\u306e\u5883\u754c\uff09\u300d\u3067\u56f2\u307e\u308c\u305f\u7bc4\u56f2\u304c\u8981\u7d20\u9818\u57df\u3001\u305d\u306e\u5916\u90e8\u4f59\u767d\u304cmargin\u3001\u5185\u90e8\u8981\u7d20\u304cpadding\u3067\u3059\u3002\u8981\u7d20\u306e\u4e2d\u8eab\u306f\u30c6\u30ad\u30b9\u30c8\u3084\u753b\u50cf\u3001\u307e\u305f\u306f\u5b50\u8981\u7d20\u304c\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p>\u3082\u3063\u3068\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u3068\u3044\u3046\u4eba\u306f\u4e0b\u306e\u56f3\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm5.png\" class=\"post-img\">\n\n\n<p><span style=\"color: #000000;\">\u8981\u7d20\u306e\u4e2d\u8eab\u306f\u30c6\u30ad\u30b9\u30c8\u3084\u753b\u50cf\u3001\u307e\u305f\u306f\u5b50\u8981\u7d20\u3067\u3059\u3002\u305d\u3057\u3066\u3001\u300cwidth\u300d\u3084\u300cheight\u300d\u306f\u3053\u306e\u90e8\u5206\u306e\u5e45\u30fb\u9577\u3055\u3092\u6307\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u4e0a\u56f3\u304b\u3089\u898b\u3066\u308f\u304b\u308b\u3088\u3046\u306b\u300cpadding\u300d\u306f\u8981\u7d20\u306e\u5185\u5074\u306e\u4f59\u767d\u3001\u300cmargin\u300d\u306f\u8981\u7d20\u306e\u5916\u5074\u306e\u4f59\u767d\u3067\u3042\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<div class=\"pointBox\">\n<p><strong>margin\uff1a\u8981\u7d20\u306e\u5916\u90e8\u4f59\u767d<\/strong><\/p>\n<p><strong>padding\uff1a\u8981\u7d20\u306e\u5185\u90e8\u4f59\u767d<\/strong><\/p>\n<\/div>\n<p>\u3067\u306f\u3001\u305d\u308c\u305e\u308c\u306b\u3069\u3093\u306a\u5f79\u5272\u304c\u3042\u308b\u306e\u304b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm6.png\" class=\"post-img\">\n\n\n<p>\u4e0a\u56f3\u306e\u3088\u3046\u306b\u3001\u300cmargin\u300d\u304c\u8981\u7d20\u306e\u5468\u56f2\u306b\u3059\u304d\u9593\u3092\u4f5c\u3063\u3066\u30d6\u30ed\u30c3\u30af\u9593\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u6574\u3048\u308b\u3082\u306e\u3067\u3042\u308b\u306e\u306b\u5bfe\u3057\u3001\u300cpadding\u300d\u306f\u8981\u7d20\u306e\u4e2d\u8eab\u3068\u306e\u9593\u306b\u3059\u304d\u9593\u3092\u4f5c\u3063\u3066\u30d6\u30ed\u30c3\u30af\u5185\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u6574\u3048\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u4f59\u767d\u306e\u7a2e\u985e\u306e\u9055\u3044\u304c\u3042\u308b\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u3068\u3053\u308d\u3067CSS\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3057\u3066\u306e\u300cmargin\u300d\u3068\u300cpadding\u300d\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\">margin\u30fbpadding\u306e\u6307\u5b9a\u65b9\u6cd5<\/h2>\n\n\n<p>\u304a\u5206\u304b\u308a\u306e\u3068\u304a\u308a\u3001\u300cmargin\u300d\u306f\u8981\u7d20\u5916\u5074\u306e\u4f59\u767d\u3092\u6307\u5b9a\u3059\u308bCSS\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3042\u308a\u3001\u300cpadding\u300d\u306f\u8981\u7d20\u5185\u5074\u306e\u4f59\u767d\u3092\u6307\u5b9a\u3059\u308bCSS\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002<\/p>\n<p><span style=\"color: #000000;\">\u300cmargin\u300d\u3068\u300cpadding\u300d\u306f\u3001\u8a18\u8ff0\u65b9\u6cd5\u3082\u6307\u5b9a\u3067\u304d\u308b\u5024\u3082\u540c\u3058\u3067\u3042\u308b\u305f\u3081\u3001\u6307\u5b9a\u65b9\u6cd5\u3092\u30bb\u30c3\u30c8\u3067\u899a\u3048\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u203b\u305d\u308c\u305e\u308c\u306e\u6027\u8cea\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u306f\u5f8c\u8ff0\u3057\u307e\u3059\u3002<\/span><\/p>\n<div class=\"exclamationBox\">\n<p>\u300cmargin\u300d\u30fb\u300cpadding\u300d\u306f\u5e45\u30fb\u9ad8\u3055\u306e\u306a\u3044\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u306b\u306f\u9069\u7528\u3055\u308c\u307e\u305b\u3093\u3002\u30a4\u30f3\u30e9\u30a4\u30f3\u8981\u7d20\u306b\u4f59\u767d\u3092\u8a2d\u3051\u305f\u3044\u5834\u5408\u306f\u300cdisplay: block;\u300d\u307e\u305f\u306f\u300cdisplay: inline-block;\u300d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u4f59\u767d\u6307\u5b9a\u304c\u52b9\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3000\u8a73\u7d30\u306f<a href=\"https:\/\/techmania.jp\/blog\/css-display\/\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a><\/p>\n<\/div>\n<p>\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3067\u898b\u308b\u3068\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002<\/p>\n<p><strong>\u3010HTML\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"container\"&gt;\n &lt;div class=\"block1\"&gt;\n \u30d6\u30ed\u30c3\u30af1\n &lt;\/div&gt;\n &lt;div class=\"block2\"&gt;\n \u30d6\u30ed\u30c3\u30af2\n &lt;\/div&gt;\n &lt;div class=\"block3\"&gt;\n \u30d6\u30ed\u30c3\u30af3\n &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n<p>\u89aa\u8981\u7d20\u306b\u30d6\u30ed\u30c3\u30af1\uff5e3\u306e3\u8981\u7d20\u3092\u5165\u308c\u5b50\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><strong>\u3010CSS\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>.container{\n border:3px solid;\n}\n.block1{\n background-color:lightgray;\n}\n.block2{\n background-color:skyblue;\n margin:20px;\n}\n.block3{\n background-color:orange;\n padding:20px;\n}<\/code><\/pre>\n\n\n<p>\u30d6\u30ed\u30c3\u30af1\u306f\u4f59\u767d\u3092\u6307\u5b9a\u305b\u305a\u3001\u30d6\u30ed\u30c3\u30af2\u30fb3\u306b\u306f\u305d\u308c\u305e\u308c\u300cmargin\u300d\u3001\u300cpadding\u300d\u309220px\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u3010\u5b9f\u884c\u7d50\u679c\u3011<\/strong><\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm9.png\" class=\"post-img\">\n\n\n<p><span style=\"color: #808080;\">width\u3092\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u3001\u8981\u7d20\u306e\u5e45\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u89aa\u8981\u7d20\u306b\u5bfe\u3059\u308b100\uff05\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><strong>margin<\/strong><\/p>\n<p><span style=\"color: #000000;\">\u300cmargin:20px\u300d\u3092\u6307\u5b9a\u3057\u305f\u30d6\u30ed\u30c3\u30af2\u306f\u8981\u7d20\u306e\u4e0a\u4e0b\u5de6\u53f3\u306b20px\u305a\u3064\u4f59\u767d\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u3002\u306a\u304a\u3001margin\u306f\u8981\u7d20\u306e\u5916\u5074\u306e\u4f59\u767d\u3067\u3042\u308a\u8981\u7d20\u306b\u542b\u307e\u308c\u306a\u3044\u305f\u3081\u80cc\u666f\u8272\u306f\u4ed8\u304d\u307e\u305b\u3093\u3002<\/span><\/p>\n<p><strong>padding<\/strong><\/p>\n<p><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">\u30d6\u30ed\u30c3\u30af1\u30fb2\u306e\u3088\u3046\u306b\u3001padding\u3092\u6307\u5b9a\u3057\u306a\u3044\uff08\u307e\u305f\u306f\u300cpadding:0\u300d\uff09\u306e\u5834\u5408\u306f\u8981\u7d20\uff08\u80cc\u666f\u8272\u304c\u5857\u3089\u308c\u305f\u90e8\u5206\uff09\u304c\u5c0f\u3055\u304f\u306a\u308a\u307e\u3059\u3002\u4e00\u65b9\u3067\u3001\u300cpadding:20px\u300d\u3092\u6307\u5b9a\u3057\u305f\u30d6\u30ed\u30c3\u30af3\u306f\u30c6\u30ad\u30b9\u30c8\u306e\u4e0a\u4e0b\u5de6\u53f3\u306b10px\u305a\u3064\u4f59\u767d\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/span><\/span><\/p>\n\n\n<h4 id=\"outline__2_1_1\" class=\"wp-block-heading\">width\u3084height\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408<\/h4>\n\n\n<p>\u300cwidth\u300d\u3084\u300cheight\u300d\u306f\u8981\u7d20\u306e\u4e2d\u8eab\u3092\u6307\u5b9a\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u300cwidth:200px\u300d\u3068\u8981\u7d20\u306e\u5e45\u3092\u6307\u5b9a\u3059\u308b\u3068\u3057\u307e\u3059\u3002padding\u306f\u305d\u306e200px\u306b\u306f\u542b\u307e\u308c\u306a\u3044\u305f\u3081\u3001\u300cpadding:20px\u300d\u3067\u3042\u308b\u5834\u5408\u306f\u3001\u5de6\u53f320px\u305a\u3064\u306e\u5185\u90e8\u4f59\u767d+200px\u3068\u306a\u308a\u3001\u8981\u7d20\u306e\u5e45\u306f240px\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u203b\u30c6\u30ad\u30b9\u30c8\u3067\u691c\u8a3c\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u753b\u50cf\u306e\u5834\u5408\u3082\u540c\u69d8\u306b\u6271\u3048\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u300cmargin\u300d\u3001\u300cpadding\u300d\u3067\u4f59\u767d\u3092\u4e00\u62ec\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u3053\u3053\u304b\u3089\u306f\u500b\u5225\u306e\u6307\u5b9a\u65b9\u6cd5\u3084\u5024\u306e\u6570\u3067\u6307\u5b9a\u500b\u6570\u306b\u3088\u308b\u6307\u5b9a\u7b87\u6240\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n<h3 id=\"outline__2_2\" class=\"wp-block-heading\">margin\u30fbpadding\u3092\u500b\u5225\u306b\u6307\u5b9a\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n<p>\u300cmargin\u300d\u3001\u300cpadding\u300d\u306f\u4f59\u767d\u3092\u4e00\u62ec\u3067\u6307\u5b9a\u3067\u304d\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3057\u305f\u304c\u3001\u500b\u5225\u306b\u6307\u5b9a\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>margin-top<\/td><td>\u4e0a\u5074\u306e\u4f59\u767d\u3092\u6307\u5b9a<\/td><\/tr><tr><td>margin-bottom<\/td><td>\u4e0b\u5074\u306e\u4f59\u767d\u3092\u6307\u5b9a<\/td><\/tr><tr><td>margin-left<\/td><td>\u5de6\u5074\u306e\u4f59\u767d\u3092\u6307\u5b9a<\/td><\/tr><tr><td>margin-right<\/td><td>\u53f3\u5074\u306e\u4f59\u767d\u3092\u6307\u5b9a<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p><span style=\"color: #808080;\">\u203bpadding\u3067\u3082\u540c\u69d8<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5148\u307b\u3069\u306e\u30b3\u30fc\u30c9\u3092\u30d6\u30ed\u30c3\u30af2\u306f\u5de6\u5074\u306e\u307fmargin\u3092\u3001\u30d6\u30ed\u30c3\u30af3\u306e\u4e0a\u5074\u306e\u307fpadding\u3092\u6307\u5b9a\u3057\u3066\u307f\u307e\u3059\u3002<\/span><\/p>\n<p><strong>\u3010HTML\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"container\"&gt;\n &lt;div class=\"block1\"&gt;\n \u30d6\u30ed\u30c3\u30af1\n &lt;\/div&gt;\n &lt;div class=\"block2\"&gt;\n \u30d6\u30ed\u30c3\u30af2\n &lt;\/div&gt;\n &lt;div class=\"block3\"&gt;\n \u30d6\u30ed\u30c3\u30af3\n &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n<p><strong>\u3010CSS\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>.container{\n border:3px solid;\n}\n.block1{\n background-color:lightgray;\n}\n.block2{\n background-color:skyblue;\n margin-left:20px;\n}\n.block3{\n background-color:orange;\n padding-top:20px;\n}<\/code><\/pre>\n\n\n<p><strong>\u3010\u5b9f\u884c\u7d50\u679c\u3011<\/strong><\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm10.png\" class=\"post-img\">\n\n\n<p>\u30d6\u30ed\u30c3\u30af2\u306f\u8981\u7d20\u306e\u5de6\u5074\u306e\u307f\u4f59\u767d\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u30d6\u30ed\u30c3\u30af3\u306f\u4e0a\u5074\u306e\u307f\u5185\u5074\u4f59\u767d\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n<h3 id=\"outline__2_3\" class=\"wp-block-heading\">\u6307\u5b9a\u3059\u308b\u5024\u306e\u6570\u3067\u4f59\u767d\u306e\u5165\u308b\u7b87\u6240\u304c\u5909\u308f\u308b<\/h3>\n\n\n<p>\u500b\u5225\u306b\u6307\u5b9a\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u307b\u304b\u306b\u3082\u3001\u500b\u5225\u306b\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u500b\u5225\u306b\u6307\u5b9a\u3059\u308b\u5024\u306e\u6570\u306b\u3088\u3063\u3066\u4f59\u767d\u304c\u5165\u308b\u7b87\u6240\u304c\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>margin:\u25cbpx<\/td><td>\u300c\u4e0a\u4e0b\u5de6\u53f3\u300d\u3092\u6307\u5b9a<\/td><\/tr><tr><td>margin:\u25cbpx \u25cbpx;<\/td><td>\u300c\u4e0a\u4e0b\u300d\u300c\u5de6\u53f3\u300d\u3092\u6307\u5b9a<\/td><\/tr><tr><td>margin:\u25cbpx \u25cbpx \u25cbpx;<\/td><td>\u300c\u4e0a\u300d\u300c\u5de6\u53f3\u300d\u300c\u4e0b\u300d\u3092\u6307\u5b9a<\/td><\/tr><tr><td>margin:\u25cbpx \u25cbpx \u25cbpx \u25cbpx;<\/td><td>\u300c\u4e0a\u300d\u300c\u53f3\u300d\u300c\u4e0b\u300d\u300c\u5de6\u300d\u3092\u6307\u5b9a\uff08\u6642\u8a08\u56de\u308a\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p><span style=\"color: #808080;\">\u203bpadding\u3067\u3082\u540c\u69d8<\/span><\/p>\n<p>\u4e0a\u304b\u3089\u6642\u8a08\u5468\u308a\u3067\u4f59\u767d\u306e\u5024\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u6307\u5b9a\u3059\u308b\u5024\u540c\u58eb\u306e\u9593\u306f\u300c,\uff08\u30ab\u30f3\u30de\uff09\u300d\u3067\u306f\u306a\u304f\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3067\u3059\u3002<\/p>\n<p>\u5148\u307b\u3069\u306e\u30b3\u30fc\u30c9\u3092\u30d6\u30ed\u30c3\u30af2\u306b\u306fmargin\u30d7\u30ed\u30d1\u30c6\u30a3\u306b2\u3064\u306e\u5024\u3092\u3001\u30d6\u30ed\u30c3\u30af3\u306b\u306fpadding\u30d7\u30ed\u30d1\u30c6\u30a3\u306b3\u3064\u306e\u5024\u3092\u6307\u5b9a\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><strong>\u3010HTML\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"container\"&gt;\n &lt;div class=\"block1\"&gt;\n \u30d6\u30ed\u30c3\u30af1\n &lt;\/div&gt;\n &lt;div class=\"block2\"&gt;\n \u30d6\u30ed\u30c3\u30af2\n &lt;\/div&gt;\n &lt;div class=\"block3\"&gt;\n \u30d6\u30ed\u30c3\u30af3\n &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n<p><strong>\u3010CSS\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>.container{\n border:3px solid;\n}\n.block1{\n background-color:lightgray;\n}\n.block2{\n background-color:skyblue;\n margin:0px 20px;\n}\n.block3{\n background-color:orange;\n padding:20px 40px 0px;\n}<\/code><\/pre>\n\n\n<p><strong>\u3010\u5b9f\u884c\u7d50\u679c\u3011<\/strong><\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm11.png\" class=\"post-img\">\n\n\n<p>\u30d6\u30ed\u30c3\u30af2\u306f\u8981\u7d20\u306e\u5de6\u53f3\u306e\u307f\u4f59\u767d\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u30d6\u30ed\u30c3\u30af3\u306f\u4e0a\u5074\u306b20px\u3001\u5de6\u53f3\u306b40px\u306e\u5185\u5074\u4f59\u767d\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n<h3 id=\"outline__2_4\" class=\"wp-block-heading\">\u30b7\u30e7\u30fc\u30c8\u30cf\u30f3\u30c9\u3067\u8a18\u8ff0\u3059\u308b\u6ce8\u610f\u70b9<\/h3>\n\n\n<p>\u30b7\u30e7\u30fc\u30c8\u30cf\u30f3\u30c9\u3092\u5229\u7528\u3059\u308b\u306e\u306f\u8a18\u8ff0\u3092\u7c21\u7565\u5316\u3067\u304d\u3066\u4fbf\u5229\u3067\u3059\u304c\u3001\u4fdd\u5b88\u6027\u306e\u89b3\u70b9\u3067\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u4fee\u6b63\u6642\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u5834\u5408\u3082\u3042\u308aCSS\u306e\u8868\u793a\u901f\u5ea6\u306b\u5f71\u97ff\u304c\u51fa\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u300cmargin:20px 0px 0px 40px\u300d\u3068\u66f8\u3044\u3066\u3044\u305f\u5834\u5408\u3001\u53f3\u5074\u3068\u4e0b\u5074\u306f0px\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306f\u30b7\u30e7\u30fc\u30c8\u30cf\u30f3\u30c9\u3092\u4f7f\u308f\u305a\u306b\u3001\u300cmargin-top:20px\u300d\u300cmargin-left:40px\u300d\u3068\u66f8\u304f\u65b9\u304c\u7121\u99c4\u304c\u306a\u304f\u671b\u307e\u3057\u3044\u3067\u3059\u3002<span style=\"color: #0000ff;\"><br \/><\/span><\/p>\n\n\n<h2 id=\"outline__3\" class=\"wp-block-heading\">margin\u30fbpadding\u306e\u6027\u8cea<\/h2>\n\n\n\n<h3 id=\"outline__3_1\" class=\"wp-block-heading\">margin\u306f\u76f8\u6bba\u304c\u8d77\u3053\u308b<\/h3>\n\n\n<p>\u96a3\u308a\u5408\u3046\u8981\u7d20\u305d\u308c\u305e\u308c\u306bmargin\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001margin\u540c\u58eb\u304c\u3076\u3064\u304b\u308a\u5408\u3063\u3066\u300cmargin\u306e\u76f8\u6bba\u300d\u304c\u8d77\u3053\u308a\u307e\u3059\u3002\u3053\u308c\u304c\u4f59\u767d\u6307\u5b9a\u3092\u5206\u304b\u308a\u306b\u304f\u304f\u3059\u308b\u539f\u56e0\u306e1\u3064\u3060\u3068\u601d\u308f\u308c\u307e\u3059\u3002margin\u6307\u5b9a\u304c\u8907\u6570\u4e26\u3093\u3060\u5834\u5408\u3001\u3069\u3061\u3089\u304b\u4e00\u65b9\u306e\u307f\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u3069\u3061\u3089\u304c\u9069\u7528\u3055\u308c\u308b\u304b\u3068\u3044\u3046\u3068\u3001\u300c\u5024\u304c\u5927\u304d\u3044\u65b9\u300d\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u4e0a\u306e\u8981\u7d20\u306b\u300cmargin-bottom:20px\u300d\u3001\u4e0b\u306e\u8981\u7d20\u306b\u300cmargin-top:40px\u300d\u3068\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u300140px\u306emargin-top\u306e\u65b9\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><strong>\u3010HTML\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"container\"&gt;\n &lt;div class=\"block1\"&gt;\n \u30d6\u30ed\u30c3\u30af1\n &lt;\/div&gt;\n &lt;div class=\"block2\"&gt;\n \u30d6\u30ed\u30c3\u30af2\n &lt;\/div&gt;\n &lt;div class=\"block3\"&gt;\n \u30d6\u30ed\u30c3\u30af3\n &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n<p>\u30d6\u30ed\u30c3\u30af2\u306b\u300cmargin-bottom:20px\u300d\u3001\u30d6\u30ed\u30c3\u30af3\u306b\u300cmargin-top:40px\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u3010CSS\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>.container{\n border:3px solid;\n}\n.block1{\n background-color:lightgray;\n}\n.block2{\n background-color:skyblue;\n margin-bottom:20px;\n}\n.block3{\n background-color:orange;\n margin-top:40px;\n}<\/code><\/pre>\n\n\n<p><strong>\u3010\u5b9f\u884c\u7d50\u679c\u3011<\/strong><\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm12.png\" class=\"post-img\">\n\n\n\n<h4 id=\"outline__3_1_1\" class=\"wp-block-heading\">\u89aa\u8981\u7d20\u3068\u5b50\u8981\u7d20\u306e\u9593\u3067\u3082margin\u306e\u76f8\u6bba\u306f\u8d77\u3053\u308b<\/h4>\n\n\n<p>margin\u306e\u76f8\u6bba\u306f\u3001\u89aa\u8981\u7d20\u3068\u5b50\u8981\u7d20\u306e\u9593\u3067\u3082\u8d77\u3053\u308a\u307e\u3059\u3002\u305d\u3057\u3066\u3053\u306e\u5834\u5408\u3067\u3082margin\u306e\u5024\u304c\u5927\u304d\u3044\u65b9\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u89aa\u8981\u7d20\u306b\u300cmargin-top:20px\u300d\u3001\u305d\u306e\u5b50\u8981\u7d20\u306b\u300cmargin-top:40px\u300d\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u89aa\u8981\u7d20\u306emargin\u3067\u306f\u306a\u304f\u3001\u5b50\u8981\u7d20\u306emargin\u304c\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><strong>\u3010HTML\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"container\"&gt;\n &lt;div class=\"block1\"&gt;\n \u30d6\u30ed\u30c3\u30af1\n &lt;\/div&gt;\n &lt;div class=\"block2\"&gt;\n  &lt;div class=\"block2_child\"&gt;\n  \u30d6\u30ed\u30c3\u30af2\n  &lt;\/div&gt;\n &lt;\/div&gt;\n &lt;div class=\"block3\"&gt;\n \u30d6\u30ed\u30c3\u30af3\n &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n<p><strong>\u3010CSS\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>.container{\n border:3px solid;\n}\n.block1{\n background-color:lightgray;\n}\n.block2{\n background-color:skyblue;\n margin-bottom:20px;\n}\n.block3{\n background-color:orange;\n}\n.block2_child{\n margin-bottom:40px;\n}<\/code><\/pre>\n\n\n<p><strong>\u3010\u5b9f\u884c\u7d50\u679c\u3011<\/strong><\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm13.png\" class=\"post-img\">\n\n\n\n<h4 id=\"outline__3_1_2\" class=\"wp-block-heading\">padding\u3067\u306f\u76f8\u6bba\u306f\u8d77\u3053\u3089\u306a\u3044<\/h4>\n\n\n<p>\u306a\u304a\u3001\u76f8\u6bba\u304c\u8d77\u3053\u308b\u306e\u306fmargin\u306e\u307f\u3067\u3001padding\u3067\u306f\u3053\u306e\u76f8\u6bba\u73fe\u8c61\u306f\u8d77\u3053\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001margin\u3068padding\u306e\u9593\u3067\u3082\u3053\u306e\u73fe\u8c61\u306f\u8d77\u3053\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n<h3 id=\"outline__3_2\" class=\"wp-block-heading\">margin\u306e\u5024\u306bauto\u3092\u6307\u5b9a\u3067\u304d\u308b<\/h3>\n\n\n<p><span style=\"font-size: revert;\">margin\u306b\u306fauto\u3068\u3044\u3046\u5024\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002auto\u3092\u4f7f\u3046\u3068\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u30fb\u53f3\u5bc4\u305b\u3067\u304d\u3001<\/span>\u4e0a\u624b\u304f\u6271\u3046\u3053\u3068\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3082\u7d44\u307f\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<h4 id=\"outline__3_2_1\" class=\"wp-block-heading\">\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u3059\u308b<\/h4>\n\n\n<p>margin\u3067\u8981\u7d20\u3092\u4e2d\u592e\u5bc4\u305b\u306b\u3059\u308b\u306b\u306f\u3001\u8981\u7d20\u3092\u89aa\u8981\u7d20\u306e\u5e45\u306b\u5408\u308f\u305b\u305f\u3046\u3048\u3067\u5de6\u53f3\u306e\u4f59\u767d\u3092\u5747\u7b49\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u3010HTML\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"container\"&gt;\n &lt;div class=\"block1\"&gt;\n \u30d6\u30ed\u30c3\u30af1\n &lt;\/div&gt;\n &lt;div class=\"block2\"&gt;\n \u30d6\u30ed\u30c3\u30af2\n &lt;\/div&gt;\n &lt;div class=\"block3\"&gt;\n \u30d6\u30ed\u30c3\u30af3\n &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n<p>\u89aa\u8981\u7d20\u306e\u5e45\u3092600px\u3001\u305d\u308c\u306b\u5408\u308f\u305b\u3066\u30d6\u30ed\u30c3\u30af2\u306e\u5e45\u3092300px\u306b\u3057\u3001\u300cmargin:0 auto\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u3010CSS\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>.container{\n border:3px solid;\n width:600px;\n}\n.block1{\n background-color:lightgray;\n}\n.block2{\n background-color:skyblue;\n width:300px;\n margin:0 auto;\n}\n.block3{\n background-color:orange;\n}<\/code><\/pre>\n\n\n<p><strong>\u3010\u5b9f\u884c\u7d50\u679c\u3011<\/strong><\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm14.png\" class=\"post-img\">\n\n\n<p><span style=\"font-size: revert;\">\u89aa\u8981\u7d20\u306e\u5e45\u304b\u3089\u8981\u7d20\u306e\u5e45\u3092\u5f15\u3044\u305f300px\u3092\u5de6\u53f3\u3067\u5747\u7b49\u306b\u5272\u3063\u305f150px\u305a\u3064\u306e\u4f59\u767d\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u5de6\u53f3\u306emargin\u306e\u5024\u3092auto\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u5de6\u53f3\u306emargin\u304c\u7b49\u3057\u304f\u306a\u308a\u3001\u7d50\u679c\u3068\u3057\u3066\u4e2d\u592e\u5bc4\u305b\u306b\u306a\u308a\u307e\u3059\u3002\u3088\u304f\u4f7f\u3046\u30c6\u30af\u30cb\u30c3\u30af\u306a\u306e\u3067\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<h4 id=\"outline__3_2_2\" class=\"wp-block-heading\">\u8981\u7d20\u3092\u53f3\u5bc4\u305b\u3059\u308b<\/h4>\n\n\n<p><span style=\"color: #000000;\">margin\u3067\u8981\u7d20\u3092\u53f3\u5bc4\u305b\u306b\u3059\u308b\u306b\u306f\u3001\u8981\u7d20\u3092\u89aa\u8981\u7d20\u306e\u5e45\u306b\u5408\u308f\u305b\u305f\u3046\u3048\u3067\u3001margin-left\u306bauto\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><strong>\u3010HTML\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"container\"&gt;\n &lt;div class=\"block1\"&gt;\n \u30d6\u30ed\u30c3\u30af1\n &lt;\/div&gt;\n &lt;div class=\"block2\"&gt;\n \u30d6\u30ed\u30c3\u30af2\n &lt;\/div&gt;\n &lt;div class=\"block3\"&gt;\n \u30d6\u30ed\u30c3\u30af3\n &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n<p><span style=\"color: #000000;\">\u89aa\u8981\u7d20\u306e\u5e45\u3092600px\u3001\u305d\u308c\u306b\u5408\u308f\u305b\u3066\u30d6\u30ed\u30c3\u30af2\u306e\u5e45\u3092300px\u306b\u3057\u3001\u300cmargin-left:auto\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><strong>\u3010CSS\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>.container{\n border:3px solid;\n width:600px;\n}\n.block1{\n background-color:lightgray;\n}\n.block2{\n background-color:skyblue;\n width:300px;\n margin-left:auto;\n}\n.block3{\n background-color:orange;\n}<\/code><\/pre>\n\n\n<p><strong>\u3010\u5b9f\u884c\u7d50\u679c\u3011<\/strong><\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm15.png\" class=\"post-img\">\n\n\n\n<h4 id=\"outline__3_2_3\" class=\"wp-block-heading\">margin\u306f\u4e0a\u4e0b\u306e\u4e2d\u592e\u914d\u7f6e\u306f\u3067\u304d\u306a\u3044<\/h4>\n\n\n<p>\u300cmargin:0 auto\u300d\u3067\u5de6\u53f3\u306e\u4e2d\u592e\u5bc4\u305b\u306f\u3067\u304d\u307e\u3059\u304c\u3001\u300cmargin:auto\u300d\u3068\u6307\u5b9a\u3057\u3066\u3082\u4e0a\u4e0b\u306e\u4e2d\u592e\u914d\u7f6e\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002\u3042\u304f\u307e\u3067\u6c34\u5e73\u65b9\u5411\u306e\u307f\u3067\u3042\u308b\u3053\u3068\u306f\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<h4 id=\"outline__3_2_4\" class=\"wp-block-heading\">padding\u3067\u4e2d\u592e\u5bc4\u305b\u306f\u3067\u304d\u306a\u3044<\/h4>\n\n\n<p>\u300cpadding:0 auto\u300d\u3092\u6307\u5b9a\u3057\u3066\u3082\u4e2d\u592e\u5bc4\u305b\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u8981\u7d20\u5185\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u4e2d\u592e\u5bc4\u305b\u3059\u308b\u306b\u306f\u300ctext-align:center\u300d\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n<h3 id=\"outline__3_3\" class=\"wp-block-heading\">margin\u30fbpadding\u3067\u6307\u5b9a\u3067\u304d\u308b\u5024\u306e\u5358\u4f4d<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>px<\/strong><\/td><td>\u30b9\u30af\u30ea\u30fc\u30f3\u306e1\u753b\u7d20\uff08\u30d4\u30af\u30bb\u30eb\uff09\u30921\u3068\u3059\u308b\u5358\u4f4d<br>\u8868\u793a\u30b5\u30a4\u30ba\u306f\u4f7f\u7528\u3059\u308b\u30e2\u30cb\u30bf\u306e\u89e3\u50cf\u5ea6\u306b\u4f9d\u5b58<\/td><\/tr><tr><td><strong>em<\/strong><\/td><td>\u89aa\u8981\u7d20\u306e\u6a19\u6e96\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u306e\u9ad8\u3055\u30921\u3068\u3059\u308b\u5358\u4f4d<\/td><\/tr><tr><td><strong>rem<\/strong><\/td><td>HTML\u306e\u30eb\u30fc\u30c8\u8981\u7d20\u306e\u6a19\u6e96\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u306e\u9ad8\u3055\u30921\u3068\u3059\u308b\u5358\u4f4d<\/td><\/tr><tr><td><strong>%<\/strong><\/td><td>\u89aa\u8981\u7d20\u306ewidth\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u306b\u5bfe\u3059\u308b\u5272\u5408<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p>\u300c\uff05\u300d\u3060\u3051\u7570\u8cea\u3067\u3059\u3088\u306d\u3002\u5b9f\u969b\u3001\u3053\u308c\u3082\u3064\u307e\u305a\u304f\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\u3053\u3053\u304b\u3089\u306f\u300c\uff05\u300d\u306b\u3064\u3044\u3066\u6df1\u5800\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n<h2 id=\"outline__4\" class=\"wp-block-heading\">\uff05\u6307\u5b9a<\/h2>\n\n\n<p>%\u306f\u3001\u89aa\u8981\u7d20\u306e\u5e45\u306b\u5bfe\u3059\u308b\u5272\u5408\u3067\u3059\u3002<\/p>\n<div class=\"pointBox\">\n<p>\u305f\u3068\u3048\u3070margin\u306a\u3069\u3001\u3069\u308c\u304b1\u3064\u3092%\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u57fa\u672c\u7684\u306b\u307b\u304b\u306ewidth\u3084padding\u3082\u5408\u308f\u305b\u3066%\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001%\u6307\u5b9a\u3059\u308b\u5834\u5408\u3001\u6c34\u5e73\u65b9\u5411\u306e%\u306e\u5408\u8a08\u304c100%\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u3067\u306a\u3044\u3068\u30da\u30fc\u30b8\u304b\u3089\u306f\u307f\u51fa\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm7.png\" class=\"post-img\">\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u4e0a\u56f3\u306e\u3088\u3046\u306b\u8981\u7d20\u306e\u4e2d\u8eab\u309250%\u3068\u3059\u308b\u3068\u3001\u89aa\u8981\u7d20\u306e\u5e45\u304c1000px\u3067\u3042\u308b\u5834\u5408\u300150%\uff1d500px\u306b\u306a\u308a\u307e\u3059\u3002<span style=\"color: #0000ff;\"><br \/><\/span><\/p>\n<p>\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3067\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>\u3010HTML\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"container\"&gt;\n &lt;div class=\"block1\"&gt;\n \u30d6\u30ed\u30c3\u30af1\n &lt;\/div&gt;\n &lt;div class=\"block2\"&gt;\n \u30d6\u30ed\u30c3\u30af2\n &lt;\/div&gt;\n &lt;div class=\"block3\"&gt;\n \u30d6\u30ed\u30c3\u30af3\n &lt;\/div&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n<p><span style=\"color: #000000;\">\u89aa\u8981\u7d20\u306e\u5e45\u3092600px\u3001\u30d6\u30ed\u30c3\u30af2\u306e\u5e45\u309250\uff05\u3001margin\u309215\uff05\u3001padding\u309210\uff05\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><strong>\u3010CSS\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>.container{\n border:3px solid;\n width:600px;\n}\n.block1{\n background-color:lightgray;\n}\n.block2{\n background-color:skyblue;\n width:50%;\n margin:0 15%;\n padding:0 10%;\n}\n.block3{\n background-color:orange;\n}<\/code><\/pre>\n\n\n<p><strong>\u3010\u5b9f\u884c\u7d50\u679c\u3011<\/strong><\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm16.png\" class=\"post-img\">\n\n\n<p>\u4e0a\u56f3\u3067\u306f\u89aa\u8981\u7d20\u304c600px\u3067\u3042\u308b\u305f\u3081margin\u306f\u5de6\u53f390px\u305a\u3064\u3001padding\u306f\u5de6\u53f360px\u305a\u3064\u3001\u8981\u7d20\u306e\u4e2d\u8eab\u306f300px\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001%\u3067\u3082\u4f59\u767d\u3084\u5e45\u3092\u6307\u5b9a\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n<h4 id=\"outline__4_3_1\" class=\"wp-block-heading\">border\u306f%\u6307\u5b9a\u3067\u304d\u306a\u3044<\/h4>\n\n\n<p>\uff05\u6307\u5b9a\u3059\u308b\u3068\u304d\u3001\u6c34\u5e73\u65b9\u5411\u306e\u5e45\u306e\u5408\u8a08\u3092100\uff05\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u5883\u754c\u7dda\u3068\u306a\u308bborder\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u592a\u3055\u306f%\u3067\u6307\u5b9a\u3067\u304d\u307e\u305b\u3093\u3002\u304b\u3068\u3044\u3063\u3066border\u306e\u307f\u3092px\u3067\u6307\u5b9a\u3059\u308b\u3068\u3001\u305d\u306e\u592a\u3055\u306e\u5206\u3001\u89aa\u8981\u7d20\u304b\u3089\u306f\u307f\u51fa\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3053\u3046\u3044\u3063\u305f\u5834\u5408\u306f\u300cbox-sizing\u300d\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u8abf\u6574\u3059\u308b\u3053\u3068\u3067\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div style=\"margin-top:4%;\">\n<a href=\"https:\/\/techmania.jp\/\"><p style=\"text-align:center; font-weight:bold; color:black; text-decoration:underline black;\">\u3042\u306a\u305f\u306e\u3054\u5e0c\u671b\u306b\u6cbf\u3063\u305f\u6848\u4ef6\u304c<span style=\"color: red;\">\u5fc5\u305a<\/span>\u898b\u3064\u304b\u308a\u307e\u3059<br>\u3010\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u5411\u3051\u3011<span style=\"color: red;\">\u9ad8\u53ce\u5165<\/span><span style=\"color: black;\">\u30fb<\/span><span style=\"color: blue;\">\u597d\u5f85\u9047<\/span><span style=\"color: black;\">\u306e\u6848\u4ef6\u3092\u3054\u7d39\u4ecb<\/span><\/p><\/a>\n<\/div>\n\n<div style=\"text-align:center; margin-top:1%;\"><a href=\"https:\/\/techmania.jp\/\"><img decoding=\"async\" style=\"filter:drop-shadow(0px 0px 2px rgba(0,0,0,0.3));width:300px;\" alt=\"TECH MANIA \u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\" src=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2024\/02\/stop.png\"><\/a>\n<\/div>\n\n<div style=\"margin-top:0%;\">\n<a href=\"https:\/\/techmania.jp\/\"><p style=\"text-align:center; font-weight:bold; color:black; text-decoration:underline black;\">\u226b\u307e\u305a\u306f\u7c21\u5358<span style=\"color: blue;\">60<\/span>\u79d2\u3067<span style=\"color: red;\">\u7121\u6599\u304a\u554f\u3044\u5408\u308f\u305b<\/span>\u304b\u3089\u226a<\/p><\/a>\n<\/div>\n\n\n\n<h3 id=\"outline__4_4\" class=\"wp-block-heading\">%\u6307\u5b9a\u306e\u4f7f\u3044\u3069\u3053\u308d<\/h3>\n\n\n<p><strong>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3<\/strong><\/p>\n<p><span style=\"font-size: revert;\">\u5f93\u6765\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u5229\u7528\u306fPC\u304c\u30e1\u30a4\u30f3\u3067\u3057\u305f\u304c\u3001\u6628\u4eca\u306f\u30b9\u30de\u30db\u5229\u7528\u3082\u5897\u3048\u305f\u3053\u3068\u3067\u3001Web\u30b5\u30a4\u30c8\u3092\u5236\u4f5c\u3059\u308b\u5074\u3082\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3\u306e\u8003\u3048\u65b9\u306b\u79fb\u884c\u3057\u3066\u3044\u307e\u3059\u3002\u300c\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3\u300d\u3068\u306f\u3001\u8868\u793a\u3059\u308b\u30c7\u30d0\u30a4\u30b9\u306b\u3088\u3063\u3066\u306f\u4f4d\u7f6e\u3084\u5927\u304d\u3055\u304c\u5909\u308f\u308b\u30c7\u30b6\u30a4\u30f3\u306e\u3053\u3068\u3067\u3059\u3002<\/span><\/p>\n<p><strong>\u7d76\u5bfe\u5024\u3068\u76f8\u5bfe\u5024<\/strong><\/p>\n<p>\u3053\u3053\u3067\u3001margin\u3084padding\u306e\u5024\u306e\u8a2d\u5b9a\u306b\u306f\u3001\u7d76\u5bfe\u5024\u3068\u76f8\u5bfe\u5024\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u300cpx\u300d\u306a\u3069\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5e45\u304c\u5909\u308f\u3063\u3066\u3082\u5909\u5316\u3057\u306a\u3044\u7d76\u5bfe\u5024\u3068\u300c%\u300d\u3084\u300cem\u300d\u3001\u300crem\u300d\u306a\u3069\u306f\u76f8\u5bfe\u7684\u306b\u5024\u304c\u5909\u5316\u3059\u308b\u76f8\u5bfe\u5024\u304c\u3042\u308a\u307e\u3059\u3002\u7d76\u5bfe\u5024\u3092\u4f7f\u3046\u3068\u3001\u30c7\u30d0\u30a4\u30b9\u3054\u3068\u306eCSS\u8a2d\u5b9a\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u308a\u3001\u898b\u305f\u76ee\u304c\u5d29\u308c\u3066\u3057\u307e\u3063\u305f\u308a\u3059\u308b\u306a\u3069\u3001CSS\u306e\u7ba1\u7406\u304c\u5927\u5909\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n<h4 id=\"outline__4_4_1\" class=\"wp-block-heading\">\u76f8\u5bfe\u5024\u306b\u3088\u308b\u6307\u5b9a<\/h4>\n\n\n<p>margin\u30925%\u306b\u6307\u5b9a\u3059\u308b\u3068\u3001Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u753b\u9762\u30b5\u30a4\u30ba\u304c1000px\u3067\u3042\u308c\u3070\u4f59\u767d\u306f50px\u3001400px\u3067\u3042\u308c\u307020px\u3068\u3044\u3046\u3088\u3046\u306b\u3001margin\u306e\u5024\u3092\uff05\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u753b\u9762\u5e45\u306b\u5408\u308f\u305b\u3066\u6bd4\u7387\u3092\u5b88\u3063\u305f\u307e\u307e\u4f59\u767d\u3082\u4f38\u7e2e\u3057\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001margin\u3084padding\u306e%\u6307\u5b9a\u306f\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3\u3067Web\u30da\u30fc\u30b8\u3092\u5236\u4f5c\u3059\u308b\u306e\u306b\u4fbf\u5229\u306a\u306e\u3067\u3059\u3002<\/p>\n\n\n<h2 id=\"outline__5\" class=\"wp-block-heading\">\u5b9f\u52d9\u306b\u304a\u3044\u3066\u7559\u610f\u3059\u3079\u304d\u3053\u3068\u30fb\u5f79\u7acb\u3064\u60c5\u5831<\/h2>\n\n\n\n<h3 id=\"outline__5_1\" class=\"wp-block-heading\">margin\u3092\u6307\u5b9a\u3059\u308b\u3068\u304d\u306e\u6ce8\u610f\u70b9<\/h3>\n\n\n<p>margin\u306b\u306f\u76f8\u6bba\u3059\u308b\u6027\u8cea\u304c\u3042\u308b\u305f\u3081\u3001margin\u3067\u4f59\u767d\u3092\u8a2d\u5b9a\u3059\u308b\u969b\u306f\u3001\u30d6\u30ed\u30c3\u30af\u306e\u4e0a\u5074\u306e\u4f59\u767d\u3092\u6307\u5b9a\u3059\u308b\u300cmargin-bottom\u300d\u3001\u4e0b\u5074\u3092\u6307\u5b9a\u3059\u308b\u300cmargin-top\u300d\u306e\u3069\u3061\u3089\u304b\u306b\u7d71\u4e00\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n<h3 id=\"outline__5_2\" class=\"wp-block-heading\">margin\u30fbpadding\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u306e\u78ba\u8a8d\u65b9\u6cd5<\/h3>\n\n\n<p><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">\u5b9f\u969b\u306e\u4f59\u767d\u611f\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u30d6\u30e9\u30a6\u30b6\u306b\u642d\u8f09\u3055\u308c\u305f\u691c\u8a3c\u6a5f\u80fd\u306e\u5229\u7528\u304c\u6709\u52b9\u3067\u3059\u3002Googlechrome\u3067\u691c\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3046\u306b\u306fWeb\u30da\u30fc\u30b8\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3092\u3057\u3001\u300c\u691c\u8a3c\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/span><\/span><\/p>\n\n\n<h2 id=\"outline__6\" class=\"wp-block-heading\">\u3010\u6700\u5f8c\u306b\u3011margin\u3068padding\u306e\u9055\u3044\u3092\u5b9f\u52d9\u30ec\u30d9\u30eb\u3067\u307e\u3068\u3081\u308b<\/h2>\n\n\n<p>Web\u30b5\u30a4\u30c8\u306b\u6b20\u304b\u305b\u306a\u3044\u300c\u30dc\u30bf\u30f3\u300d\u3067margin\u3068padding\u306e\u9055\u3044\u3092\u793a\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u3010HTML\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>&lt;div class=\"button margin\"&gt;\n &lt;a href=\"\"&gt;margin&lt;\/a&gt;\n&lt;\/div&gt;\n&lt;div class=\"button padding\"&gt;\n &lt;a href=\"\"&gt;padding&lt;\/a&gt;\n&lt;\/div&gt;<\/code><\/pre>\n\n\n<p><strong>\u3010CSS\u5b9f\u884c\u30b3\u30fc\u30c9\u3011<\/strong><\/p>\n\n\n<pre class=\"wp-block-code\"><code>a{\n display:block;\n color:white;\n text-decoration:none;\n}\n.button{\n margin-bottom:30px;\n width:350px;\n height:60px;\n background-color:skyblue;\n text-align:center;\n border-radius:15px;\n}\n.margin a{\n padding:15px 0;\n}\n.padding a{\n display:inline-block;\n margin:15px;\n}<\/code><\/pre>\n\n\n<p><strong>\u3010\u5b9f\u884c\u7d50\u679c\u3011<\/strong><\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm17.png\" class=\"post-img\">\n\n\n<p>\u3069\u3061\u3089\u306e\u30dc\u30bf\u30f3\u3082\u898b\u305f\u76ee\u306b\u9055\u3044\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u4e0a\u306e\u30dc\u30bf\u30f3\u306f&lt;a&gt;\u30bf\u30b0\u3092margin\u3001\u4e0b\u306e\u30dc\u30bf\u30f3\u306fpadding\u3067\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u4e0a\u306e\u30dc\u30bf\u30f3\u306f\u8981\u7d20\u306e\u4e2d\u8eab\u90e8\u5206\u3057\u304b\u30af\u30ea\u30c3\u30af\u3067\u304d\u306a\u3044\u306e\u306b\u5bfe\u3057\u3001\u4e0b\u306e\u30dc\u30bf\u30f3\u306f\u30dc\u30bf\u30f3\u5168\u4f53\u304c\u30af\u30ea\u30c3\u30af\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u79c1\u7528\u306b\u9055\u3044\u304c\u51fa\u308b\u306e\u3067\u4e21\u8005\u306e\u9055\u3044\u3092\u7406\u89e3\u3057\u3066\u76ee\u7684\u306b\u6cbf\u3063\u305f\u8a2d\u5b9a\u3092\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n<div style=\"margin-top:4%;\">\n<a href=\"https:\/\/techmania.jp\/\"><p style=\"text-align:center; font-weight:bold; color:black; text-decoration:underline black;\">\u3042\u306a\u305f\u306e\u3054\u5e0c\u671b\u306b\u6cbf\u3063\u305f\u6848\u4ef6\u304c<span style=\"color: red;\">\u5fc5\u305a<\/span>\u898b\u3064\u304b\u308a\u307e\u3059<br>\u3010\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u5411\u3051\u3011<span style=\"color: red;\">\u9ad8\u53ce\u5165<\/span><span style=\"color: black;\">\u30fb<\/span><span style=\"color: blue;\">\u597d\u5f85\u9047<\/span><span style=\"color: black;\">\u306e\u6848\u4ef6\u3092\u3054\u7d39\u4ecb<\/span><\/p><\/a>\n<\/div>\n\n<div style=\"text-align:center; margin-top:1%;\"><a href=\"https:\/\/techmania.jp\/\"><img decoding=\"async\" style=\"filter:drop-shadow(0px 0px 2px rgba(0,0,0,0.3));width:300px;\" alt=\"TECH MANIA \u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\" src=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2024\/02\/er.png\"><\/a>\n<\/div>\n\n<div style=\"margin-top:0%;\">\n<a href=\"https:\/\/techmania.jp\/\"><p style=\"text-align:center; font-weight:bold; color:black; text-decoration:underline black;\">\u226b\u307e\u305a\u306f\u7c21\u5358<span style=\"color: blue;\">60<\/span>\u79d2\u3067<span style=\"color: red;\">\u7121\u6599\u304a\u554f\u3044\u5408\u308f\u305b<\/span>\u304b\u3089\u226a<\/p><\/a>\n<\/div>\n\n\n\n<h2 id=\"outline__7\" class=\"wp-block-heading\">CSS\u306e\u52c9\u5f37\u65b9\u6cd5\u306f\uff1f<\/h2>\n\n\n<p>\u66f8\u7c4d\u3084\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3067\u5b66\u7fd2\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u6628\u4eca\u3067\u306f\u3001YouTube\u306a\u3069\u306e\u52d5\u753b\u30b5\u30a4\u30c8\u3084\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30b5\u30a4\u30c8\u306a\u3069\u3082\u5145\u5b9f\u3057\u3066\u3044\u3066\u591a\u304f\u306e\u60c5\u5831\u304c\u624b\u306b\u5165\u308a\u307e\u3059\u3002<br \/>\u305d\u3057\u3066\u3001\u3088\u308a\u52b9\u7387\u7684\u306b\u77e5\u8b58\u30fb\u30b9\u30ad\u30eb\u3092\u7fd2\u5f97\u3059\u308b\u306b\u306f\u3001\u77e5\u8b58\u3092\u3064\u3051\u306a\u304c\u3089\u5b9f\u969b\u306b\u624b\u3092\u52d5\u304b\u3057\u3066\u307f\u308b\u306a\u3069\u3001\u30a4\u30f3\u30d7\u30c3\u30c8\u3068\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3044\u304f\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u7279\u306b\u72ec\u5b66\u306e\u5834\u5408\u306f\u3001\u6709\u8b58\u8005\u306b\u8cea\u554f\u304c\u3067\u304d\u305f\u308a\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u3082\u3089\u3048\u308b\u3088\u3046\u306a\u74b0\u5883\u304c\u3042\u308b\u3068\u3001\u7406\u89e3\u5ea6\u304c\u6df1\u307e\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u305f\u3060\u3001CSS\u306b\u9650\u3089\u305a\u3001IT\u30b9\u30ad\u30eb\u3092\u8eab\u306b\u3064\u3051\u308b\u969b\u3001\u3069\u3046\u3057\u3066\u3082\u8ab2\u984c\u306b\u3076\u3064\u304b\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u3088\u306d\u3002\u7279\u306b\u72ec\u5b66\u3060\u3068\u3001\u308f\u304b\u3089\u306a\u3044\u90e8\u5206\u3092\u30d7\u30ed\u306b\u8cea\u554f\u3067\u304d\u308b\u6a5f\u4f1a\u3092\u78ba\u4fdd\u3057\u306b\u304f\u304f\u3001\u30e2\u30c1\u30d9\u30fc\u30b7\u30e7\u30f3\u304c\u7d9a\u304d\u306b\u304f\u3044\u3068\u3044\u3046\u5074\u9762\u304c\u3042\u308a\u307e\u3059\u3002\u72ec\u5b66\u3067\u30e2\u30c1\u30d9\u30fc\u30b7\u30e7\u30f3\u3092\u7dad\u6301\u3059\u308b\u81ea\u4fe1\u304c\u306a\u3044\u4eba\u306b\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3068\u3044\u3046\u624b\u3082\u3042\u308a\u307e\u3059\u3002\u8cbb\u7528\u306f\u639b\u304b\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u5206\u30b9\u30ad\u30eb\u3092\u8eab\u306b\u3064\u3051\u3084\u3059\u3044\u3067\u3059\u3002\u3057\u3063\u304b\u308a\u3068\u77e5\u8b58\u30fb\u30b9\u30ad\u30eb\u3092\u7fd2\u5f97\u3057\u3066\u5b9f\u8df5\u306b\u6d3b\u304b\u3057\u305f\u3044\u3068\u3044\u3046\u4eba\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<p><span class=\"markerYellow\"><strong>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u306a\u3089\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u304c\u304a\u3059\u3059\u3081\uff01<\/strong><\/span><\/p>\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/yuudou.png\" class=\"post-img\">\n\n\n<p>IT\u30b9\u30ad\u30eb\u9700\u8981\u306e\u9ad8\u307e\u308a\u3068\u3068\u3082\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3082\u5897\u3048\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u3069\u306e\u30b9\u30af\u30fc\u30eb\u306b\u901a\u3046\u3079\u304d\u304b\u8ff7\u3063\u3066\u3057\u307e\u3046\u4eba\u3082\u3044\u308b\u3067\u3057\u3087\u3046\u3002\u305d\u3093\u306a\u65b9\u306b\u306f\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\uff01\u3053\u308c\u307e\u3067\u591a\u304f\u306eIT\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u80b2\u6210\u30fb\u8f29\u51fa\u3057\u3066\u304d\u305f\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u3067\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3092\u958b\u8b1b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"bgBox\">\n<p><strong>\uff1c\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u306e\u7279\u5fb4\uff1e<\/strong><br \/><strong>\u30fb\u305f\u3057\u304b\u306a\u80b2\u6210\u5b9f\u7e3e\u3068\u89aa\u8eab\u306a\u6559\u80b2\u3000\uff5e\u30bb\u30ab\u30f3\u30c9\u30ad\u30e3\u30ea\u30a2\u3092\u5168\u529b\u652f\u63f4\uff5e<\/strong><br \/><strong>\u30fb\u8b1b\u5e2b\u304c\u73fe\u5f79\u30a8\u30f3\u30b8\u30cb\u30a2\u3000\uff5e\u201c\u672c\u5f53\u201d\u306e\u958b\u767a\u30ce\u30a6\u30cf\u30a6\u3092\u76f4\u306b\u5b66\u3079\u308b\uff5e<\/strong><br \/><strong>\u30fb\u5c02\u5c5e\u8b1b\u5e2b\u304c\u5b66\u7fd2\u3092\u5fb9\u5e95\u30b5\u30dd\u30fc\u30c8\u3000\uff5e\u300c\u308f\u304b\u3089\u306a\u3044\u300d\u3092\u5fb9\u5e95\u89e3\u6c7a\uff5e<\/strong><br \/><strong>\u30fb\u5b9f\u52d9\u30d9\u30fc\u30b9\u3067\u30b9\u30ad\u30eb\u3092\u7fd2\u5f97\u3000\uff5e\u5b9f\u8df5\u7684\u306a\u51dd\u7e2e\u30ab\u30ea\u30ad\u30e5\u30e9\u30e0\uff5e<\/strong><\/p>\n<\/div>\n<p>\u3053\u306e\u3088\u3046\u306a\u7279\u5fb4\u3092\u6301\u3064\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u306fIT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30b9\u30bf\u30fc\u30c8\u30e9\u30a4\u30f3\u3068\u3057\u3066\u6700\u9069\u3067\u3059\u3002<br \/>\u8a71\u3092\u805e\u304d\u305f\u3044\u30fb\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u3068\u3044\u3046\u65b9\u306f<a href=\"https:\/\/techmania.jp\/lp\/2\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u304b\u3089\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 id=\"outline__8\" class=\"wp-block-heading\">\u95a2\u9023\u8a18\u4e8b\u4e00\u89a7\u3010HTML\/CSS\u3011<\/h2>\n\n\n<ul>\n<li><a href=\"https:\/\/techmania.jp\/blog\/programming0007\/\" target=\"_blank\" rel=\"noopener\">HTML\/CSS\u3068\u306f\uff1f\u95a2\u4fc2\u6027\u3084\u66f8\u304d\u65b9<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/html\/\" target=\"_blank\" rel=\"noopener\">HTML\u3068\u306f\uff1f<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/html-tag\/\" target=\"_blank\" rel=\"noopener\">HTML\u983b\u51fa\u30bf\u30b0\u4e00\u89a7<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/html-table\/\" target=\"_blank\" rel=\"noopener\">HTML\u3067\u8868\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/html-image-link\/\" target=\"_blank\" rel=\"noopener\">HTML\u3067\u753b\u50cf\u30ea\u30f3\u30af\u3092\u8cbc\u308b\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/css\/\" target=\"_blank\" rel=\"noopener\">CSS\u3068\u306f\uff1f\u30e1\u30ea\u30c3\u30c8\u3084\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/css-headline-design\/\" target=\"_blank\" rel=\"noopener\">\u3010\u30b3\u30d4\u30da\u53ef\u3011CSS\u898b\u51fa\u3057\u30c7\u30b6\u30a4\u30f330\u9078<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/css-pseudo-elements\/\" target=\"_blank\" rel=\"noopener\">\u64ec\u4f3c\u8981\u7d20\u3068\u306f\uff1f::before\u3084::after\u306e\u4f7f\u3044\u65b9<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/css-newline\/\" target=\"_blank\" rel=\"noopener\">\u6539\u884c\u30eb\u30fc\u30eb\u306e\u8a2d\u5b9a\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/css-style\/\" target=\"_blank\" rel=\"noopener\">HTML\u306bCSS\u3092style\u3067\u76f4\u66f8\u304d\u3059\u308b\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/css-table\/\" target=\"_blank\" rel=\"noopener\">\u8868\uff08\u30c6\u30fc\u30d6\u30eb\uff09\u306e\u30c7\u30b6\u30a4\u30f3\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/css-background-imag\/\" target=\"_blank\" rel=\"noopener\">CSS\u3067\u80cc\u666f\u753b\u50cf\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/css0002\/\" target=\"_blank\" rel=\"noopener\">CSS float\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u306f\uff1f<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/css-flexbox\/\" target=\"_blank\" rel=\"noopener\">HTML\u8981\u7d20\u3092\u6a2a\u4e26\u3073\u306b\u3059\u308bCSS\u306e\u65b0\u5b9a\u756a\u300cflexbox\u300d\u3068\u306f\uff1f<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/css-position-absolute\/\" target=\"_blank\" rel=\"noopener\">\u8981\u7d20\u3092\u597d\u304d\u306a\u4f4d\u7f6e\u306b\u914d\u7f6e\u3059\u308b\u300cposition:absolute;\u300d\u3068\u306f\uff1f<\/a><\/li>\n<li><a href=\"https:\/\/techmania.jp\/blog\/css-display\/\" target=\"_blank\" rel=\"noopener\">display:inline\u3001display:block\u3001display:inline-block\u306e\u9055\u3044<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"\u4f59\u767d\u306fWeb\u30da\u30fc\u30b8\u3092\u898b\u3084\u3059\u304f\u3059\u308b\u3046\u3048\u3067\u91cd\u8981\u3067\u3059\u3002\u3057\u304b\u3057\u3001margin\u3068padding\u304c\u3042\u3063\u3066\u305d\u308c\u305e\u308c\u306b\u30eb\u30fc\u30eb\u304c\u3042\u308a\u2026\u3068\u6df7\u4e71\u3057\u3084\u3059\u304f\u3001\u632b\u6298\u3057\u304b\u3051\u3066\u3044\u308b\u3068\u3044\u3046\u4eba\u3082\u5c11\u306a\u304f\u306a\u3044\u3067\u3057\u3087\u3046\u3002\u305d\u3053\u3067\u672c\u8a18\u4e8b\u3067\u306f\u3001\u4f59\u767d\u306e\u6307\u5b9a\u65b9\u6cd5\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u3001margin\u30fbpadding\u306b\u3064\u3044\u3066\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u3067\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u305c\u3072\u4eca\u5f8c\u306eCSS\u5b66\u7fd2\u306b\u5f79\u7acb\u3066\u3066\u304f\u3060\u3055\u3044\u3002 margin\u3068padding\u306e\u9055\u3044 \u307e\u305a\u3001\u4e21\u8005\u306e\u9055\u3044 [&hellip;]","protected":false},"author":8,"featured_media":6756,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/thumbnail\/images\/pm0.png","fifu_image_alt":"CSS\u306emargin\u3084padding\u3092\u5b8c\u5168\u306b\u7406\u89e3\u3057\u3066\u4f59\u767d\u3092\u5236\u3059","footnotes":""},"categories":[1],"tags":[],"class_list":["post-6726","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/6726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/comments?post=6726"}],"version-history":[{"count":26,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/6726\/revisions"}],"predecessor-version":[{"id":9937,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/6726\/revisions\/9937"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media\/6756"}],"wp:attachment":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media?parent=6726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/categories?post=6726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/tags?post=6726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}