Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Does a child element receive the characteristics of a parent element?

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 :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading