{"id":6579,"date":"2026-07-17T00:47:19","date_gmt":"2026-07-16T15:47:19","guid":{"rendered":"https:\/\/route-zero.com\/recruit\/?post_type=route&#038;p=6579"},"modified":"2026-11-17T00:47:28","modified_gmt":"2026-11-16T15:47:28","slug":"css-text-wrap-balance-heading","status":"publish","type":"route","link":"https:\/\/route-zero.com\/recruit\/route\/6579\/","title":{"rendered":"CSS text-wrap: balance\u3067\u898b\u51fa\u3057\u306e\u6539\u884c\u3092\u6574\u3048\u308b"},"content":{"rendered":"<p>CSS\u306etext-wrap: balance\u3092\u4f7f\u3046\u3068\u30012\u301c3\u884c\u306b\u6298\u308a\u8fd4\u3055\u308c\u308b\u898b\u51fa\u3057\u306e\u884c\u5e45\u3092\u3088\u308a\u5747\u7b49\u306b\u6574\u3048\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u307e\u305a\u6700\u5c0f\u306e\u66f8\u304d\u65b9\u3092\u8a66\u3057\u3001\u901a\u5e38\u306e\u6298\u308a\u8fd4\u3057\u3068\u306e\u9055\u3044\u3068\u4f7f\u3046\u3068\u304d\u306e\u6ce8\u610f\u70b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<h2>text-wrap: balance\u3068\u306f<\/h2>\n<p>text-wrap\u306f\u30c6\u30ad\u30b9\u30c8\u306e\u6298\u308a\u8fd4\u3057\u65b9\u3092\u6307\u5b9a\u3059\u308bCSS\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3059\u3002balance\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u30fc\u306f\u8a31\u53ef\u3055\u308c\u305f\u6539\u884c\u4f4d\u7f6e\u306e\u4e2d\u304b\u3089\u3001\u8907\u6570\u884c\u306e\u9577\u3055\u304c\u3067\u304d\u308b\u3060\u3051\u504f\u3089\u306a\u3044\u6298\u308a\u8fd4\u3057\u65b9\u3092\u9078\u3073\u307e\u3059\u3002\u77ed\u3044\u898b\u51fa\u3057\u3084\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3\u306e\u898b\u305f\u76ee\u3092\u6574\u3048\u305f\u3044\u5834\u9762\u3067\u4f7f\u3044\u3084\u3059\u3044\u6307\u5b9a\u3067\u3059\u3002<\/p>\n<blockquote>\n<p><strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30bd\u30d5\u30c8\u6539\u884c<\/strong><br \/>HTML\u306b&lt;br&gt;\u3092\u66f8\u3044\u3066\u56fa\u5b9a\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u753b\u9762\u5e45\u3084\u6587\u5b57\u5217\u306b\u5fdc\u3058\u3066\u30d6\u30e9\u30a6\u30b6\u30fc\u304c\u81ea\u52d5\u3067\u6c7a\u3081\u308b\u6539\u884c\u3067\u3059\u3002text-wrap: balance\u306f\u3001\u3053\u306e\u81ea\u52d5\u6539\u884c\u306e\u9078\u3073\u65b9\u306b\u5f71\u97ff\u3057\u307e\u3059\u3002<\/p>\n<\/blockquote>\n<hr>\n<h2>\u307e\u305a\u306f\u6700\u5c0f\u306eCSS\u3067\u8a66\u3059<\/h2>\n<p>\u898b\u51fa\u3057\u306b1\u884c\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u8a66\u305b\u307e\u3059\u3002\u753b\u9762\u5e45\u3092\u72ed\u304f\u3057\u305f\u308a\u5e83\u304f\u3057\u305f\u308a\u3057\u3066\u3001\u901a\u5e38\u306e\u6298\u308a\u8fd4\u3057\u3068\u306e\u9055\u3044\u3092\u898b\u6bd4\u3079\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code>&lt;h2 class=&quot;balanced-title&quot;&gt;\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u5b66\u7fd2\u3067\u6700\u521d\u306b\u899a\u3048\u305f\u3044CSS\u306e\u57fa\u672c&lt;\/h2&gt;\r\n\r\n&lt;style&gt;\r\n.balanced-title {\r\n  max-width: 24rem;\r\n  text-wrap: balance;\r\n}\r\n&lt;\/style&gt;<\/code><\/pre>\n<p>max-width\u306f\u5fc5\u9808\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u3053\u3067\u306f\u6298\u308a\u8fd4\u3057\u3092\u78ba\u8a8d\u3057\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u5e45\u3092\u5236\u9650\u3057\u3066\u3044\u307e\u3059\u3002text-wrap: balance\u3060\u3051\u3067\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<hr>\n<h2>\u901a\u5e38\u306ewrap\u3068\u306e\u9055\u3044<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u6307\u5b9a<\/th>\n<th>\u7279\u5fb4<\/th>\n<th>\u5411\u3044\u3066\u3044\u308b\u5834\u9762<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>text-wrap: wrap<\/td>\n<td>\u901a\u5e38\u306e\u6298\u308a\u8fd4\u3057\u3002\u65e2\u5b9a\u306e\u52d5\u4f5c<\/td>\n<td>\u672c\u6587\u3084\u4e00\u822c\u7684\u306a\u30c6\u30ad\u30b9\u30c8<\/td>\n<\/tr>\n<tr>\n<td>text-wrap: balance<\/td>\n<td>\u8907\u6570\u884c\u306e\u9577\u3055\u3092\u306a\u308b\u3079\u304f\u5747\u7b49\u306b\u3059\u308b<\/td>\n<td>\u77ed\u3044\u898b\u51fa\u3057\u30fb\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3<\/td>\n<\/tr>\n<tr>\n<td>text-wrap: pretty<\/td>\n<td>\u901f\u5ea6\u3088\u308a\u7d44\u7248\u54c1\u8cea\u3092\u512a\u5148\u3059\u308b\u6298\u308a\u8fd4\u3057<\/td>\n<td>\u898b\u305f\u76ee\u3092\u91cd\u8996\u3057\u305f\u9577\u3081\u306e\u6587\u7ae0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u898b\u51fa\u3057\u306e\u3088\u3046\u306b\u884c\u6570\u304c\u5c11\u306a\u3044\u5834\u6240\u3067\u306fbalance\u304c\u6271\u3044\u3084\u3059\u304f\u3001\u9577\u3044\u672c\u6587\u5168\u4f53\u306b\u7121\u6761\u4ef6\u3067\u6307\u5b9a\u3059\u308b\u7528\u9014\u3068\u306f\u5206\u3051\u3066\u8003\u3048\u308b\u3068\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr>\n<h2>\u4f7f\u3046\u3068\u304d\u306e\u6ce8\u610f\u70b9<\/h2>\n<ul>\n<li>\u6587\u5b57\u6570\u305d\u306e\u3082\u306e\u3092\u5909\u66f4\u3059\u308b\u6a5f\u80fd\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6539\u884c\u4f4d\u7f6e\u306e\u9078\u3073\u65b9\u304c\u5909\u308f\u308a\u307e\u3059\u3002<\/li>\n<li>\u30d6\u30e9\u30a6\u30b6\u30fc\u306f\u7121\u5236\u9650\u306e\u884c\u6570\u3092\u5bfe\u8c61\u306b\u30d0\u30e9\u30f3\u30b9\u8a08\u7b97\u3059\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002MDN\u3067\u306fChromium\u306f6\u884c\u4ee5\u4e0b\u3001Firefox\u306f10\u884c\u4ee5\u4e0b\u306e\u30d6\u30ed\u30c3\u30af\u306b\u5bfe\u5fdc\u3059\u308b\u3068\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>\u3059\u3079\u3066\u306etext-wrap\u95a2\u9023\u5024\u304c\u540c\u3058\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u5404\u30d6\u30e9\u30a6\u30b6\u30fc\u306b\u5b9f\u88c5\u3055\u308c\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u4f7f\u3044\u305f\u3044\u5024\u3054\u3068\u306b\u4e92\u63db\u6027\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>\u898b\u51fa\u3057\u3092\u56fa\u5b9a\u4f4d\u7f6e\u3067\u5fc5\u305a\u6539\u884c\u3057\u305f\u3044\u5834\u5408\u306f\u3001balance\u3060\u3051\u3067\u5b8c\u5168\u306b\u540c\u3058\u6539\u884c\u4f4d\u7f6e\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n<\/ul>\n<p>\u5b66\u7fd2\u6642\u306f\u3001\u307e\u305awrap\u3068balance\u3092\u5207\u308a\u66ff\u3048\u306a\u304c\u3089\u753b\u9762\u5e45\u3092\u5909\u3048\u308b\u3068\u3001\u9055\u3044\u3092\u78ba\u8a8d\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u521d\u5fc3\u8005\u5411\u3051\u306e\u78ba\u8a8d\u624b\u9806<\/h2>\n<ol>\n<li>2\u884c\u4ee5\u4e0a\u306b\u6298\u308a\u8fd4\u3055\u308c\u308b\u898b\u51fa\u3057\u3092\u7528\u610f\u3059\u308b<\/li>\n<li>\u6700\u521d\u306ftext-wrap: wrap\u306e\u72b6\u614b\u3067\u8868\u793a\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>text-wrap: balance\u3078\u5909\u66f4\u3059\u308b<\/li>\n<li>\u30d6\u30e9\u30a6\u30b6\u30fc\u306e\u6a2a\u5e45\u3092\u5c11\u3057\u305a\u3064\u5909\u3048\u3066\u884c\u306e\u9577\u3055\u3092\u898b\u6bd4\u3079\u308b<\/li>\n<li>\u672c\u6587\u3067\u306f\u306a\u304f\u77ed\u3044\u898b\u51fa\u3057\u306b\u9650\u5b9a\u3057\u3066\u4f7f\u3044\u3001\u5fc5\u8981\u6027\u3092\u5224\u65ad\u3059\u308b<\/li>\n<\/ol>\n<pre><code>.title {\r\n  text-wrap: wrap;\r\n}\r\n\r\n\/* \u6bd4\u8f03\u3059\u308b\u3068\u304d *\/\r\n.title {\r\n  text-wrap: balance;\r\n}<\/code><\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>text-wrap: balance\u306f\u3001\u77ed\u3044\u898b\u51fa\u3057\u304c\u8907\u6570\u884c\u306b\u306a\u3063\u305f\u3068\u304d\u306e\u884c\u5e45\u3092\u6574\u3048\u308b\u305f\u3081\u306b\u4f7f\u3048\u308bCSS\u3067\u3059\u3002\u307e\u305a\u306f\u898b\u51fa\u30571\u3064\u306b\u6307\u5b9a\u3057\u3001\u901a\u5e38\u306ewrap\u3068\u306e\u9055\u3044\u3092\u753b\u9762\u5e45\u3092\u5909\u3048\u306a\u304c\u3089\u78ba\u8a8d\u3059\u308b\u3068\u7406\u89e3\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>CSS\u3092\u5b66\u3076\u3068\u304d\u306f\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u3060\u3051\u3092\u6697\u8a18\u3059\u308b\u3088\u308a\u3001\u5b9f\u969b\u306b\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u3066\u9055\u3044\u3092\u78ba\u8a8d\u3059\u308b\u7fd2\u6163\u3092\u4ed8\u3051\u308b\u3068\u7406\u89e3\u304c\u6df1\u307e\u308a\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"featured_media":6580,"template":"","_links":{"self":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route\/6579"}],"collection":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route"}],"about":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/types\/route"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media\/6580"}],"wp:attachment":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media?parent=6579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}