News for hackers. Stuff that matters.
Re:25 Years of CSS by dsego on Wednesday June 02, 2021 @10:44AM (#27369268)
Cute, can I have tabs with equal widths based on the longest tab, without knowing the exact number of tabs?
Re:25 Years of CSS by mondaygreens on Wednesday June 02, 2021 @11:58AM (#27370220)
Yes you can: https://wt5hp.csb.app/ (implemented in pure CSS, with some JS to demonstrate that it works)
Re:25 Years of CSS by dsego on Wednesday June 02, 2021 @04:42PM (#27373773)
Thanks! And darn, I forgot about css grid. I think this example wasn't possible with flexbox a few years ago.
Re:25 Years of CSS by JoeCianflone on Wednesday June 02, 2021 @10:54AM (#27369396)
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.