Re:Tell HN: Thank you for not redesigning Hacker News
by eurasiantiger on Sunday September 01, 2019 @06:08PM
(#20855314)
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.
Re:Tell HN: Thank you for not redesigning Hacker News
by deftturtle on Monday September 02, 2019 @07:57PM
(#20862614)
Thank you! I’m still learning CSS and will have to adjust my style sheets! :)
This increases area by padding the link. Just don’t want the rap areas of different elements to overlap with too much padding.
You can also put a border around the new area, or a box shadow, to indicate larger click area, making it a button sort of:
{border: thin solid grey}