3 ms·
In my experience, no matter how many improvements there have been, there are always things that you are trying to do that css doesn't support or make easy to do
by dsego 6y ago
In my experience, no matter how many improvements there have been, there are always things that you are trying to do that css doesn't support or make easy to do. Recently I've tried making tabs the same width but not justified horizontally, meaning all tabs should have the same width as the widest one. Something like this (1) but without hard coding the children count. In my mind, you would be able to set the widths to max-width of siblings. In general, I would love to have more signifiers that describe relations between elements.
(1)https://codepen.io/brettdonald/pen/oRpORG https://codepen.io/brettdonald/pen/oRpORG
- mattigames 6y agoThen what direction of relationship would have precedence, left to right? Right to left? If neither how precedence would be defined? Overall I don't want css to become any more complex, if you need an edge case such as that one JavaScript is a great tool for the job.
- andykx 6y agoFunny, I was just struggling with this yesterday in an assessment I was given for a new job.
- enjeyw 6y agoYeah I have the same feeling. I was struggling for hours the other week to make two columns the same height, but the need for an overflow on one kept on killing everything. Coming from a mechanical engineering background, I'm very used to being able to define spatial properties with respect to other elements in CAD, and it just seems lacking in CSS.