次のようなリストを表示したい:
しかし、私のCSSの知識はあまり良くなく、次のような問題が発生しています。
フロートなどと関係があると思います。いくつか試してみましたが、うまくいきませんでした。これはリストのHTMLです:
<ul id="list">
<li>
<img class="itemImg" src="images/foo.jpg" width="230px" height="230px">
<span class="title">Title title title title</span>
<a class="rightImage" href="#">
<img src="images/info_btn.png" width="120px" height="120px">
</a>
<span class="textBottom">textBottom textBottom textBottom textBottom </span>
</li>
そしてCSS:
#list {
list-style: none;
margin: 0px;
padding: 0px;
font-size: 40px;
}
#list li {
margin-bottom: 20px;
padding: 10px;
-moz-border-radius: 8px;-webkit-border-radius: 8px;border-radius: 8px;
}
.itemImg {
-moz-border-radius: 8px;-webkit-border-radius: 8px;border-radius: 8px;
margin-right: 10px;
}
.rightImage {
float: right;
margin-bottom: 20px;
margin-top:20px;
}
/* vertical-align: center; */
.title {
vertical-align: top;
font-size: 2em;
font-weight: bold;
background-color:#00ff00;
}
.textBottom {
float: right;
margin-top: 200px;
background-color:#ff0000;
}
どんなオリエンテーションも大歓迎です...ありがとう。
編集:「テキストテキストテキストテキスト」の行は、「Img2」ではなく、親の右下を基準にして配置する必要があります。しかし、CSSではこの種の配置は不可能であることを読みました。これをどのように処理しますか?