word-break

書式

word-break:改行方法

対象

全ての要素

継承

する

初期値

normal

バージョン

独自プロパティ

対応ブラウザ

Win IE5.5以降, Safari

解説

英単語の途中で改行するかどうかを指定します。normalまたはbreak-wrapを指定できます。
サンプルコード
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<style type="text/css"><!--
body { margin:0px; }
div { position:absolute; top:10;left:10px;
width:300px;
word-wrap:break-word;
}
--></style>
</head>
<body>
<div>Sample TextSampleTextSampleTextSampleTextSampleTextSampleTextSampleTextSampleTextSampleText</div>
</body>
</html>
実際のサンプルを実行する