I am facing a challenge with removing a border when the display property is set to none, despite it being a seemingly simple task.
My understanding has always been that setting the display property to none removes an element from the HTML flow. However, in the example I have provided, there is still a border showing on the last element.
<div class="outer">
<div class="inner">
<div class="control">Foo</div>
<div class="control d-none">Bar</div>
</div>
</div>