Two div blocks on same line

后端 未结 11 1199
小蘑菇
小蘑菇 2020-11-30 21:09

How to center on the same \"line\" two div blocks?

First div:

11条回答
  •  北海茫月
    2020-11-30 21:47

    Use below Css:

    #bloc1,
    #bloc2 {
    display:inline
    } 
    
    body {
    text-align:center
    }
    

    It will make the mentioned 2 divs in the center on the same line.

提交回复
热议问题