Я использую display: flex, чтобы создать потрясающую страницу.Внутри этого div я не мог сделать перевод строки.Вот мой jsfiddle: https://jsfiddle.net/vp4rzk8v/ Просто мне нужно сделать «Картлар» на новой строке.Вот мой код:
<style>
body {
background: rgba(13, 190, 81, .5);
}
.customcol:hover {
background: rgba(13, 190, 81, .8);
}
.customcol {
width: 33.33%;
float: left;
text-align: center;
box-sizing: border-box;
color: white;
height: 86vh;
box-sizing: border-box;
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
background: transparent;
-webkit-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
</style>
<div class="col customcol">
<i class="fa fa-credit-card fa-5x " aria-hidden="true"></i>
<div>
<h3>Kartlar</h3>
</div>
</div>