絶対配置を使用してみてください。ショッピング カートのレイアウトを作成しているように見えるので、最初はかなり構造化されたページがあると思います。
フィドルでデモを参照してください: http://jsfiddle.net/audetwebdesign/rC59T/
あなたのHTMLは基本的にこれです:
<div calss="panel-wrap">
<ul class="rank">
<li class="rank-1">
<img ... />
<p>1</p>
</li>
<li class="rank-2">
<img ... />
<p>2</p>
</li>
<li class="rank-3">
<img ... />
<p>3</p>
</li>
</ul>
</div>
CSS の場合:
.panel-wrap {
width: 460px;
}
.panel-wrap
背景画像などを追加したい場合に便利です。
ul.rank {
list-style: none outside none;
padding: 0;
margin: 0;
position: relative; /* this will force the li to be positioned with respect
to this block level container */
border: 1px solid gray;
height: 200px;
}
ul.rank li {
width: 150px;
top: 0; /* pin top and bottom so that the li fills in the height
of the parent container */
bottom: 0;
border: 1px solid red;
position: absolute;
}
ul.rank img {
width: 150px;
xheight: 90px; /* Careful not to adjust both width and height which could
distort your images */
}
ul.rank p {
border: 1px dotted blue;
text-align:center;
position: absolute;
bottom: 10px;
left: 0; /* pin left and right so the p fills in the
width of the li... */
right: 0;
margin: 0;
}
トリックは、各リスト項目の左オフセットを均一な間隔で調整することです:
.rank-3 {
top: 0;
left: 0;
}
.rank-1 {
top: 0;
left: 160px;
}
.rank-2 {
top: 0;
left: 320px;
}
大きな利点
あなたができることは、JavaScript/jQuery を使用して左オフセットを動的に設定し、ユーザーがボタンをクリックして一連のカタログ アイテムをスクロールできるインタラクティブなページを作成することです。