在我的一行中,我想將最大寬度和居中我的文本在該div內。在父母的中間放置一個最大寬度和對齊文本
我的主頁文本目前的樣子::
我想放一個最大寬度和中心這一節中的文本。
理想的結果:
CSS
.homepage-text {
font-size: 130%;
}
.light-section {
background-color: lightblue;
/* color: white; */
text-align: center:
}
HTML
<div class="row light-section">
<div class="col-sm-12">
<div class="col-sm-12 homepage-text">
<p>Text sit's here</p>
</div></div></div>
活動鏈接:http://185.123.97.138/~kidsdrum/moneynest.co.uk/
感謝隊友,切換最大寬度到750px,這是完美的 –
不客氣! – lomboboo