This css code has a form in a div and i do not know why if you remove the form-container as a class the form will not be like a list again.
.form-container form{
background:#fff;
flex-direction:column;
display:flex;
}
>Solution :
Because the .form-container
targets every form
within the div you are applying the style to. If you remove it, and will leave it like .form
, it wont do anything, because dot before text is class selector, and since you probably dont have class="form"
on your form, it wont do anything.
Therefore, if you want it to work, remove the dot. But keep in mind that then this CSS will effect every form within your whole page.