How to display "divs" horizontally?

This question already has an answer here:

  • CSS - Make divs align horizontally 7 answers

  • 你是这个意思?

    #loginContent,
    #signupContent {
        float: left;
        width: 50%;
    }
    
    or
    
    #Content {
      text-align: center;
    }
    
    #loginContent,
    #signupContent {
        display: inline-block;
    }
    

    Use inline-block Fiddle:

    #loginContent, #signupContent {
    display: inline-block;
    

    }

    or you can use float Fiddle:

    #signupContent {
    float: right;
    

    }

    链接地址: http://www.djcxy.com/p/81468.html

    上一篇: facebook快速解析注册

    下一篇: 如何水平显示“div”?