kev*_*100 1 html css html5 css3
好吧所以我看了一堆像这样的其他堆栈溢出问题,似乎没有任何工作.我不知道为什么它不起作用必须是愚蠢的,我不能抓住.
我的CSS
.how-right {
}
.how-right img {
float:right;
margin-left:20px;
vertical-align:middle;
}
.how-left {
}
Run Code Online (Sandbox Code Playgroud)
我的HTML
<!-- Number 1 -->
<div style="height:259px;" class="how-right">
<img src="img/how-it-works/num-1.PNG" width="267px" height="259px">
<span> has a simple system to get you in shape in just 6 weeks. And it's so easy to follow, even people who have never exercised before can do it.</span>
</div>
Run Code Online (Sandbox Code Playgroud)
span {
height: 259px;
display: table-cell;
vertical-align: middle;
}
Run Code Online (Sandbox Code Playgroud)