I made two buttons, but only a part of the buttons is clickable, the whole part of the button should be clickable. I used position absolute to give the buttons a place in my page.
The hml code:
<div class="knop">
<a href="https://mylink"><div class="sideLeft"><image
src="images/knop.png"></div></a>
</div>
<div class="knop">
<a href="https://mylink"><div class="sideRight"><image
src="images/knop1.png"></div></a>
</div>
With this css:
.sideLeft{
width: 150px;
height: 150px;
position: absolute;
Top: 41%;
display: block;
}
.sideRight{
width: 150px;
height: 150px;
position: absolute;
Top: 41%;
right: 0px;
display: block
}
.knop img{
width: 150px;
height: 150px;
}
Image: Image