我試圖在以居中的兩行文字旁邊顯示圖像。我附上了一個例子,並且您會從中看到圖像位於文本的左側,而我試圖將圖像居中放置在文本的左側,並且具有完全居中的圖像/文本。響應式地在兩行文字旁邊的中央圖像
CSS:
.center-class{
text-align:center;
}
.righty img{
max-width: 100px;
float:left;
}
.vid-open{
}
HMTL:
<section class="">
<div class="row pull-down">
<div class="center-class">
<div class="righty">
<img src="http://www.psdgraphics.com/file/white-egg.jpg" >
<h2>This is a header.</h2>
<h5 class="vid-open">some text some text some text<span class="icon-right-left-01-011" ></span></h5>
</div>
</div>
</div>
</section>
你想要圖像在頁面中居中並讓文本流向右邊? – VikingBlooded
@VikingBlooded是的 – maudulus