3 ms·
Thanks for the positive feedback! My reasons are: 1) You still want to have the option of a "hard" BR 2) I want to set the HR as a high level class, so I can us
by maxsavin 12y ago
Thanks for the positive feedback! My reasons are:
1) You still want to have the option of a "hard" BR
2) I want to set the HR as a high level class, so I can use it freely through whatever I'm working on.
For example:
<strong>Headline</strong><br>
The quick brown fox jumped <hr>
over the lazy dog.
You 100% want the line break after the headline, and want to set an optional one in the subtext.
I like it because its very clean to look at, but you can also create a responsive class like <div class="desktop-breakline"></div>
- ajanuary 12y agoIf you're going as verbose as using a class, just put the class on the br tag. <strong>Headline</strong><br> The quick brown fox jumped <br class="soft"> over the lazy dog.
- err4nt 12y agoThis is what I did originally, <br class=”desktop“> But now I'd rather just use the media query to only affect the <br> inside of the H1 or other container where the line break appears. Another consideration I didn't see in the article that I train the people updating the marketing copy: put your white space before the line break. When it's all inline it will display as one line, but you don't want to have a space after the line break at the start of the new line. programmers may be conscientious of where the white space is but its a real eye-opener for marketing-types who only pay attention to the content, not the space around it!