My goal is to design a page where all elements remain perfectly aligned, even when the user resizes the window. However, the code I have written does not achieve this.
<div style="display:flex; justify-content: left; padding: 3px;">
<div style="margin:2px;">Language: <select name="lang"><option></option></select> | Pair language: </div>
<div style="margin:2px;"><select id="pairlang[]" name="pairlang[]" multiple size=3><option></option></select></div>
<div style="margin:2px;">Items: <input type="text" name="item" size="10"> | </div>
<div style="margin:2px;">Search: <input type="text" name="string"></div>
</div>
In the future, I may want to add new elements within the div container. Is there a method to maintain perfect alignment of all elements regardless of window width changes?