6 ms·
"display: none;" works just fine for BRs! Sure, you don't want to override it for the entire web site, but if you're being specific enough about showing/hiding
by bshimmin 12y ago
"display: none;" works just fine for BRs!
Sure, you don't want to override it for the entire web site, but if you're being specific enough about showing/hiding line breaks at certain breakpoints, then I don't see why you can't just specify with the class of the container (or whatever) which particular BR you want to hide in a given context.
- maxsavin 12y agoHmm.. good point, it wasn't working when I tried it. But I still prefer to include it on a high level into my CSS frameworks. Set it, forget it, and use freely.
- bshimmin 12y agoAt least a few people on HN use Lynx - they won't like you much for this!
- tobyhinloopen 12y agoWhy on earth would you use Lynx?
- tobyhinloopen 12y ago<br class=hidden-for-mobile> :D
- maxsavin 12y agoYou also may want the flexibility of both. For example: <strong>Headline</strong><br> The quick brown fox jumped<hr> over the lazy dog. And the code is clear and easy to read.