# Padding and margins on anchor tags

**URL:** <https://forum.kirupa.com/t/padding-and-margins-on-anchor-tags/167112>\
**Category:** web dev\
**Created:** [October 25, 2005, 4:44pm UTC](https://forum.kirupa.com/t/padding-and-margins-on-anchor-tags/167112 "2005-10-25T16:44:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snailface](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@snailface](https://forum.kirupa.com/u/snailface)\
**Post date:** [October 25, 2005, 4:44pm UTC](https://forum.kirupa.com/t/padding-and-margins-on-anchor-tags/167112/1 "2005-10-25T16:44:27Z")

</div>

I feel like the answer to this should be simple, but I can’t seem to figure it out.

Is there a way to add padding and margins to anchor tags?

I have a horizontal row containing links. I want to place 5 pixels of padding inside the anchor tag on all sides.

I’ve tried the basic padding: 5px; but I get no effect.

Am I missing something?
