A
A
Alexander Stepanov2016-10-22 04:23:57
css
Alexander Stepanov, 2016-10-22 04:23:57

How to make blocks in the center?

Hello!
There is a one-page - t5.ruksa.ru
Please tell me how to make blocks in the second row of the "Services" section in the middle.
CSS - t5.ruksa.ru/css/style.css

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Ketov, 2016-10-22
@Culibin

You can write it specifically for this case like this:

.gallery-list {
    text-align: center;
}
.gallery-list li.grid_13 {
    display: inline-flex;
    float: none;
    margin: auto; 
}

It can be written in the same way, but for all nested li, but with indentation.
PS The solution was checked only in chrome.

I
Igor Vorotnev, 2016-10-22
@HeadOnFire

flexbox

S
Sergey Goryachev, 2016-10-22
@webirus

display: flex;
justify-content: center;

A
A person from Kazakhstan, 2016-10-22
@LenovoId

This is for example, and by the way adaptive but see: sandbox

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question