Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dsego
· 5y ago · 0 comments
Cute, can I have tabs with equal widths based on the longest tab, without knowing the exact number of tabs?
Comments
[–]
mondaygreens
5y ago
Yes you can:
https://wt5hp.csb.app/
(implemented in pure CSS, with some JS to demonstrate that it works)
[–]
dsego
OP
5y ago
Thanks! And darn, I forgot about css grid. I think this example wasn't possible with flexbox a few years ago.
[–]
JoeCianflone
5y ago
No. 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.