我知道我可以使用float并将图像放在左边,但是我怎样才能得到这些数字,标题和这三列?HTML/CSS - 将文本与图像和数字对齐
HTML:
<div class="images">
<ul>
<li class="image"><img src="https://www.ofbizdemo.com/images/products/PC001/large.png" />
<p class="padding">Text Here</font>
</ul>
</div>
CSS:
.images ul li {
display: inline;
}
.image {
float: left; // float to the left
}
p.padding {
float: right;
padding-top: 0px;
padding-bottom: 0px;
padding-right: 500px;
padding-left: 150px;
}
我使用我的CSS,但我的文字没有得到严格对齐到右侧,而我不能确定我可以如何添加图片显示的那些数字。
把一些代码,小提琴总是最好的 – Thaddius
把你所有的一切,我们可以看到最新的错误。我们不是在这里为你编码整个事情 – user3767853
@Thaddius我已经做到了。 – vbaid