我試圖在圖像旁邊放兩行文字,有點像這樣
_________
| | Line one of text
| image |
| | Line two of text
---------
這是我到目前為止的代碼
Line one of text
Line 2 of text
.banner p {
font-family: "Gentium Basic";
font-size: 19px;
text-align: center;
color: #aaa;
margin-top: -10;
display: block;
}
.banner img {
float: center;
margin: 5px;
}
.banner span {
padding-top: 50px;
font-size: 17px;
vertical-align:top;
}
.banner .ban2 span {
padding-top: 50px;
font-size: 17px;
vertical-align:top;
}
但目前它這樣做:
_________
| | Line one of text
| image |
| |
---------
Line two of text
我已經浏覽了整個網絡,但無法弄清楚如何做到這一點,任何幫助都會非常受歡迎.