I'm trying to make my button take up 90% of the width of the screen.
After testing my HTML code, I noticed that the button is only occupying around 10% of the screen. However, when I specify the width using pixels, it adjusts correctly.
What could be causing this issue?
.quiz {
/*top: 240px;*/
position: fixed;
z-index: -1;
}
.quiz button {
width: 90%;
border-radius: 8px;
display: block;
}
<div class="quiz">
<button>Option 1</button>
</div>