5 ms·
In response to his "responsive numeric stepper," he could have substituted over 20 lines of CSS and eliminated the unsavory plethora of element-specific media q
by Rumudiez 10y ago
In response to his "responsive numeric stepper," he could have substituted over 20 lines of CSS and eliminated the unsavory plethora of element-specific media queries if he'd just used non-breaking spaces (` `) to achieve the desired line breaks.
Better yet, he could have set `white-space: nowrap;` on `.passenger__label` instead and just thrown a `<wbr>` element before the first parenthesis.
- kough 10y agoI'll admit, I've been doing frontend for a while and I hadn't heard of the <wbr> element. Thanks for the pointer!
- wnevets 10y ago> [1] Support for the <wbr> tag was introduced in Internet Explorer 5.5, though removed again in version 7. probably the biggest problem with it.
- stephengillie 10y agoTechnically, it's a tag, not a pointer.
- xoiqqq 10y agoHe means "pointer" in the non comp-sci sense of the word, as in "thanks for the tip!"
- stephengillie 10y agoI had meant it in the sarcastic sense.
- xoiqqq 10y agoAh ok, I thought you might have but wasn't sure :)
- amichal 10y agoSee also ‌ and friends