css を使用して番号付きリストを含む 3 列のリストを作成したいのですが?
- りんご
- オレンジ
- レモン
現在、コードが順序付けされているにもかかわらず、順序付けられていないリストが表示されています。
例: 1. 最初の列にリンゴ、その下の最初の列にオレンジを配置する代わりに、リンゴを最初の列に配置し、オレンジを 2 番目の列に配置します。
<style> ol{margin-bottom:20px; overflow:hidden; width:600px;}
li{display:inline; float:left; line-height:1px;}
#two li {width:50%;}
#three li {width:33.333%;}
#four li {width:25%;}
#six li {width:16.666%;}
</style>
<code>
<ol id="3">
<li>
<div class="fruit">
apples
oranges
lemons
etc..
</div>
</li>
</ol>
</code>