Answer the question
In order to leave comments, you need to log in
How to align a horizontal shape to the center?
<div class="content">
<div class="order">
<div class="order-content">
<h1 class="text-center">Умная бухалтерия от "0" рублей! <br>
...финансовая прочность Вашего бизнеса!
</h1>
<form action="#">
<ul>
<li><input type="text"></li>
<li><input type="text"></li>
<li><button>Заказать</button></li>
</ul>
</form>
</div>
</div>
</div>
div.order {
color: white;
background-image: url("../images/Bitmap%20Copy%206.png");
div.order-content {
background-color: rgba(126, 180, 224, 0.65);
}
h1 {
padding-top: 200px;
}
form {
padding-top: 75px;
padding-bottom: 200px;
width: 100%;
margin: 0 auto;
text-align: center;
ul {
li {
float: left;
}
}
}
}
Answer the question
In order to leave comments, you need to log in
You can, for example, like this, without knowing the width of
jsfiddle.net/cr1j431v/1
, you can also do this:
.form {
left: 50%;
position: absolute;
transform: translateX(-50%);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question