You are right, it has nothing to do with your explanation. However, it does have an impact on your debug code, specifically the border.
If the box-sizing is the default content-box, borders will be added to the total width of an element. So by using a border of 1px, you create a total width of 100% + 2px, which means you still get a horizontal scrollbar.
When using an outline this would not be an issue since an outline has no layout.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You are right, it has nothing to do with your explanation. However, it does have an impact on your debug code, specifically the border.
If the
box-sizing
is the defaultcontent-box
, borders will be added to the total width of an element. So by using a border of1px
, you create a total width of100% + 2px
, which means you still get a horizontal scrollbar.When using an
outline
this would not be an issue since an outline has no layout.