There has been plenty of back-and-forth regarding this issue, with proposed solutions ranging from pure CSS to pure HTML. Some can get quite complex, involving deeply nested divs and intricate CSS rules. I'm looking for a simple and uncomplicated answer to this problem. It should not depend on CSS tables (such as {display: table;} because I am already using that to toggle the visibility of the entire div, and solutions involving it never seem to integrate smoothly with my existing codebase. Can anyone provide guidance on how best to approach this?