I am trying to make a button that goes in the centre of the screen I have tried lots of solutions which havent worked html:
<button align="center" type="button" onclick="location.href='https://discord.gg/AsA7P9B5Mv'" class="button">
<span align="center" class="button__test"> Join Server </span>
</button>
css:
.button {
text-align: center;
align: center;
justify-content: center;
align-items: center;
height: 10vw;
width: 25vw;
margin: 0;
padding: 0;
background: #10e321;
border: none;
outline: none;
border-radius: 1vw;
overflow: hidden;
font-size: 4vw;
cursor: pointer;
}
.button:hover{
background: #11d120;
}
.button:active{
background: #0eb31b;
}
Help would be greatly appreciated :)