Consider we have a HTML like as follows:

<div class="demo">
    <a href="http://www.yoursite.com/test.html">Click here</a>
</div>

Now here demo div has a width of 200px and height of 200px. If you want Click here link to be width of 200px and height of 200px then follow below tasks.

Open your style.css file and put the below code.

.demo a {
    display: table-cell;
    height: 200px;
    vertical-align: middle;
    width: 200px;
}

That should make the link's width to 200px in width and 200px in height.

Add comment


Security code
Refresh