A
A
Andrey Skripnik2019-03-19 04:41:14
css
Andrey Skripnik, 2019-03-19 04:41:14

How to remove left alignment (or right padding) in flexbox?

Page with a problem
5c90463eb24e8957602827.png
I wanted to manually adjust the site header, and I ran into a problem in flexbox: when centering and aligning elements with space-between, an indent remains on the right, the cause of which cannot be found out. Can you please tell me how to fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2019-03-19
@andreskrip

Remove the clr class
. You end up with a fourth block (which becomes the rightmost one) ::after, in addition to the three divs, because of the following style:

.col::after, .clr::after, .group::after, dl::after, .left_float::after, .right_float::after {
    content: '';
    display: block;
    visibility: hidden;
    clear: both;
    zoom: 1;
    height: 0;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question