column-count
に設定されたdivがあり3
ます。内部には多数のul
s があります。右側に 4 番目の列の始まりが表示されています。3 列を指定したのに、なぜこれが表示されるのでしょうか?
HTML (フィドルはこちら: http://jsfiddle.net/B6zDR/3/ )
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
div
{
height: 150px;
width: 835px;
padding: 20px;
overflow: hidden;
text-overflow: ellipsis;
-moz-column-count: 3;
-webkit-column-count: 3;
column-count: 3;
background-color: lightblue;
}
h2
{
margin: 0;
}
</style>
</head>
<body>
<div>
<h2>UL #1</h2>
<ul>
<li>1</li>
<li>2</li>
</ul>
<h2>UL #2</h2>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
</ul>
<h2>UL #3</h2>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
<h2>UL #4</h2>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
<h2>UL #5</h2>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
</div>
</body>
</html>