Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eurasiantiger
· 7y ago · 0 comments
Note that the <a> element is inline by default, which means top and bottom padding is not applied. Set display: inline-block; to have padding apply all around while retaining the element’s flow in the layout.
Comments
[–]
deftturtle
7y ago
Thank you! I’m still learning CSS and will have to adjust my style sheets! :)