Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lllorddino
· 10y ago · 0 comments
That feeling when the first paragraph of an article points out something you've been doing wrong all along :D. I use <br> in between paragraphs and it looks horrible, what should I be using instead?
Comments
[–]
cmg
10y ago
HTML paragraphs have a default margin on the top and bottom. In Safari/Chrome at least, it's 1em. Use/modify that. I often add
#whatever-container p:first-of-type { margin-top: 0; }
to remove the top margin on the first paragraph of a container to line things up properly.
[–]
reitanqild
10y ago
<p></p> is start and end of a paragraph.
[–]
bits_stib
10y ago
use more <p></p>.