You need to put the anchor inside the div Then set it to display:block with the correct height and width.