Xiaojian Xiaojian - 1 year ago 76
CSS Question

How to display "divs" horizontally?

<div id="Content">
<div id="loginContent"></div>
<div id="signupContent"></div>

I have a root div here. I want to display the child divs horizontally. How to do this?

Answer Source

You mean this?

#signupContent {
    float: left;
    width: 50%;


#Content {
  text-align: center;

#signupContent {
    display: inline-block;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download