How to align 3 divs (left/center/right) inside another div?

前端 未结 18 2336
猫巷女王i
猫巷女王i 2020-11-21 20:48

I want to have 3 divs aligned inside a container div, something like this:

[[LEFT]       [CENTER]        [RIGHT]]

Container div is 100% wid

18条回答
  •  清酒与你
    2020-11-21 21:18

    .processList
      text-align: center
      li
      .leftProcess
        float: left
      .centerProcess
        float: none
        display: inline-block
      .rightProcess
        float: right
    
    html
    ul.processList.clearfix
      li.leftProcess
    
    li.centerProcess
    li.rightProcess
    

提交回复
热议问题