How to create two div elements with same height side by side in CSS
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Use the CSS3 flexbox
With CSS3 flex layout model you can very easily create the equal height columns or
<div>
elements that are aligned side by side. Just apply thedisplay
property with the valueflex
on the container element and theflex
property with the value 1 on child elements.Let's try out the following example to understand how it basically works:
need an explanation for this answer? contact us directly to get an explanation for this answer