<div id="Content">
<div id="loginContent"></div>
<div id="signupContent"></div>
</div>
I have a root div here. I want to display the child divs horizontally. How to do this?
You mean this?
#Content {
display: flex;
}
#loginContent {
flex: 1;
}
#signupContent {
flex: 1;
}
#loginContent,
#signupContent {
float: left;
width: 50%;
}
#Content {
text-align: center;
}
#loginContent,
#signupContent {
display: inline-block;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With