I want to position my text using CSS, but margin-left
doesn't do that, unless I put something huge like margin-left:600px;
.
Why does this happen?
HTML
<div class="section">
<div class="container">
<div class="row">
<div class="col-md-6">
<p>WK500 K1</p>
<img src="WK500 K1/kulg.jpg" class="img-responsive">
</div>
<p class="wk540">WK540 K1</p>
<div class="col-md-6">
<img src="WK540 K1/kulg.jpg" class="img-responsive">
</div>
</div>
</div>
</div>
CSS
.wk540{
margin-left: 50px;
}
paragraph tag
很弱...因此,请尝试将其放在<div>
,并将页边距放在<div>
标签上
Instead of margin-left, use text-align: left.
.wk540 {
margin-left: 50px;
text-align: left;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.