I don't understand what im doing wrong with the use of flexbox.
I'd like to have my button on the extreme right of the screen (but that does not happen) and the text input on the left. I'd like to do it using flexbox. here is the code:
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
form {
display: flex;
background: red;
}
button {
align-self: flex-end;
}
<div class="adder-comp">
<form>
<input type="text" placeholder="aggiungi compito.." />
<button>crea</button>
</form>
</div>