.wrapper {
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
background-color: blueviolet;
}
.welcome_text {
width: 500px;
}
.welcome_form input,
.welcome_form button {
display: block;
width: 100%;
}
.welcome_form input {
margin-bottom: 15px;
padding: 100px;
}
<div class="wrapper">
<div class="welcome_text">
<form class="welcome_form">
<input type="text">
<button type="submit">Start Quiz</button>
</form>
</div>
</div>
It is evident from the code that the welcome_text section is set to a width of 500px. However, upon rendering, there seems to be alignment issues as shown in the screenshot. The problem exacerbates when using padding on the input box. https://i.sstatic.net/JQVF6.png
What would be the best approach to resolve this alignment issue?