I recognize that this could be solved rather very easily with JavaScript, but I am only interested in a pure CSS Option.By making use of Exhibit: inline-block; And much more typically If you have a guardian (often There exists a parent apart from html) use display: inline-block; for that interior factors. also to pressure them to stay in precisely