That is because you are applying the width and height to the child element of the link. Links by default are display inline, and have no dimensions.
If the link is display block and has a dimension, for example, 500 x 500px, then for the child element, you can set display relative/absolute, width 100%, height 100%.