4 ms·
Cute, can I have tabs with equal widths based on the longest tab, without knowing the exact number of tabs?
by dsego 5y ago
Cute, can I have tabs with equal widths based on the longest tab, without knowing the exact number of tabs?
- JoeCianflone 5y agoNo. Ut I’d tell a designer that’s a stupid design and we can get pretty close to it if they really wanted it but overflows will make it look ugly depending on where they want this magic unlimited tab box.
- mondaygreens 5y agoYes you can: https://wt5hp.csb.app/ https://wt5hp.csb.app/ (implemented in pure CSS, with some JS to demonstrate that it works)
- dsego 5y agoThanks! And darn, I forgot about css grid. I think this example wasn't possible with flexbox a few years ago.