how to align button next to input field css code example Example: have button beside form input Click to copyform { display: flex; } input[type=text] { flex-grow: 1; }