Hi everyone i want o display 3 elements in a row. I have tried the following code but it is not displaying them correctly.
Add display: inline-block; to the child divs.
Set the height of the child divs:
height: 20px /* or in %, em, etc */;height: inherit; which gives the height from the parent div to the children divsFrom W3Schools:
The inherit keyword specifies that a property should inherit its value from its parent element.
The inherit keyword can be used for any CSS property, and on any HTML element.