W
W
weranda2018-02-20 11:03:24
css
weranda, 2018-02-20 11:03:24

Three blocks in a row and a pixel appearing on the right - how to win?

Greetings
Meet an illustrative example .
Essence: three blocks in one block (width: 33%, 34%, 33%). When you change the width of the browser window, an empty space appears on the right.
5a8bd5a68e5a7253477180.gifQuestion: how to fix it in the current layout without resorting to flex?
In FireFox everything is fine, but in Chrome it is not normal, although this may be normal browser behavior, but I would like to fix it.
PS
I tried on flex, the same thing.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
Xenia, 2018-02-20
@TGNC

Are the blocks inline? if so, it can be a hyphen or space character. Here are options to deal with it.

A
Ankhena, 2018-02-20
@Ankhena

If you had a code example that matched the question, it would be cool.
Why do you use order, I don’t know, if you stop using it, then the code can be optimized.
https://codepen.io/anon/pen/ZrxBgZ?editors=1100

S
slava_flash, 2018-02-20
@slava_flash

as mentioned earlier, set 33.333333% (6 decimal places) block width
https://codepen.io/anon/pen/RQMVGW?editors=1100

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question