L
L
LinuxGod2020-04-24 10:25:59
css
LinuxGod, 2020-04-24 10:25:59

Why is the background div running over the edge?

5ea294534e95c106640730.png

why at the bottom of the diva comes another div to the bottom edge (stroke)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
drawnofmymind, 2020-04-24
@drawnofmymind

Because width auto;
and the element is stretched by width BUT it doesn't take into account the border
calc(100% - 1px)

A
Alexey, 2020-04-24
@AleksRap

* {
  box-sizing: border-box;
}

Add what is above. Importers remove

A
adyvan1, 2020-04-24
@adyvan1

Instead of border-width:1.5px !important; write border-width:2px !important;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question