Re:The Importance of Manually Breaking Lines of Text
by maxsavin on Sunday October 19, 2014 @03:36PM
(#8479303)
You can't do display none for BR element.
But even if you could, you wouldn't want to overwrite it for the entire website. Also, the HR element is a very old, largely unused, and styleable, so its a good candidate for this.
[ Parent
| on HN ]
Re:The Importance of Manually Breaking Lines of Text
by bshimmin on Sunday October 19, 2014 @03:42PM
(#8479327)
"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.
Re:The Importance of Manually Breaking Lines of Text
by maxsavin on Sunday October 19, 2014 @04:00PM
(#8479406)
You 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.
Re:The Importance of Manually Breaking Lines of Text
by maxsavin on Sunday October 19, 2014 @03:48PM
(#8479359)
Hmm.. 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.
Re:The Importance of Manually Breaking Lines of Text
by bshimmin on Sunday October 19, 2014 @03:56PM
(#8479391)
At least a few people on HN use Lynx - they won't like you much for this!
Re:The Importance of Manually Breaking Lines of Text
by tobyhinloopen on Sunday October 19, 2014 @03:57PM
(#8479397)
Why on earth would you use Lynx?
Re:The Importance of Manually Breaking Lines of Text
by hobs on Sunday October 19, 2014 @04:08PM
(#8479434)
Because you are blind?
Re:The Importance of Manually Breaking Lines of Text
by DanBC on Sunday October 19, 2014 @05:19PM
(#8479651)
Lynx and Dillo are very fast. Also lightweight.
Re:The Importance of Manually Breaking Lines of Text
by tobyhinloopen on Sunday October 19, 2014 @03:56PM
(#8479393)
<br class=hidden-for-mobile>
:D
Re:The Importance of Manually Breaking Lines of Text
by gavinballard on Sunday October 19, 2014 @03:43PM
(#8479336)
Not sure if "largely unused" is right. I use them all the time, and have seen them in pretty common use around the place.