How to position two divs horizontally within another div

前端 未结 13 1006
悲哀的现实
悲哀的现实 2020-12-12 11:12

I haven\'t played with CSS for too long a time and am without references at the moment. My question should be fairly easy but googling isn\'t bringing up a sufficient answer

13条回答
  •  伪装坚强ぢ
    2020-12-12 11:25

    Best and simple approach with css3

    #subtitle{
    /*for webkit browsers*/
         display:-webkit-box;
        -webkit-box-align:center;
        -webkit-box-pack: center;
         width:100%;
    }
    
    #subleft,#subright{
         width:50%;
    }
    

提交回复
热议问题