Objective: My goal is to create a table using HTML that has a scrollable tbody and a fixed first column, with each cell in a column having the same width and row height adjusting based on content.
Approach taken: I initially attempted this using an HTML table but found it challenging. Instead, I tried implementing a table with a sticky header and first column following a reference from here: https://codepen.io/paulobrien/pen/LBrMxa?editors=1100. However, I encountered issues with spacing when applying flexbox within td elements.
I later learned that complex styling within td and th elements in an HTML table can cause rendering problems.
Question: Can HTML tables effectively handle divs with flexbox alignment while maintaining expected rendering?
Future plans: Considering exploring CSS Grid for building a more flexible table structure that can accommodate various items more effectively.