When using "flex justify content space between" to arrange elements, I noticed that having an ::after element inside the div adds an unwanted margin on the right side. Is there a way to remove this?
Here is a simplified version of the HTML:
<div>
<div></div>
<div></div>
<div></div>
::after
</div>
And here is a simplified SCSS code snippet:
div {
display: flex;
justify-content: space-between;
div {
margin: auto;
}
}