Currently, I'm working on developing a simple idle browser game. I'm facing a challenge in positioning a button on the right-middle of the box.
I attempted using position: relative along with adjusting the bottom and left parameters, but I still can't seem to remove the highlighted yellow space. This extra space needs to be eliminated so that the box matches the height of another table on the right.
For a clearer picture, here's a visual representation:
https://i.sstatic.net/uE3VW.png
Furthermore, here is the HTML code snippet:
.player {
line-height: 0.6;
border-style: solid;
padding: 0px 0px 0px 5px;
margin: auto;
float: left;
border-color: blue;
background-color: azure;
width: 49.5%
}
.interface {
position: relative;
bottom: 50px;
left: 400px;
}
<div class="player">
<!-- useless stuff here -->
<div class="interface">
<button>Click me</button>
</div>
</div>