How to place two div side-by-side of the same height using CSS?
The two or more different div of same height can be put side-by-side using CSS. Use CSS property to set the height and width of div and use display property to place div in side-by-side format.
The used display property are listed below:
- display:table; This property is used for elements (div) which behaves like table.
- display:table-cell; This property is used for elements (div) which behaves like tc.
- display:table-row: This property is used for elements (div) which behaves like tr.
Example 2: This example contains multiple number of div put into side-by-side using CSS.
My Personal Notes arrow_drop_up
Please Login to comment...