M
M
Martyer2016-01-17 12:36:25
css
Martyer, 2016-01-17 12:36:25

How without pseudo-elements to add a border to me with a width of 100%, if 4 of its points have a width of 25%?

It is required to add 3 borders, 1px wide, menu width = 100%, item width = 25%, these 3 pixels are superfluous. How can this problem be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Seredny, 2016-01-17
@Martyer

And if you use box-sizing:border-box; ?
So the width will be considered taking into account the curb.
box-sizing-property.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question