Y
Hacker News
new
|
ask
|
show
|
jobs
by
lllorddino
3585 days ago
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?
3 comments
cmg
3585 days 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.
link
reitanqild
3585 days ago
<p></p> is start and end of a paragraph.
link
bits_stib
3585 days ago
use more <p></p>.
link