However, in my demo when I change my CSS to float, the elemens seem to become unrelated to the div they are in such that the div goes to a small default size, it doesn’t match how much space the elements take up like in my original demo.
Here is my initial demo with the list in one column to show how the tab borders expand properly