怎么让菜单的div左右分布?
菜单div只会一直往下排列下去,怎么才能让li左右各一个这样排列下去
<ul> <li> <div class="menu-title"> <h4>Voluptate cillum fugiat.</h4> <p>Cheese, tomato, mushrooms, onions.</p> </div> <div class="line"></div> <div class="price">$50</div> </li> <li> <div class="menu-title"> <h4>Voluptate cillum fugiat.</h4> <p>Cheese, tomato, mushrooms, onions.</p> </div> <div class="line"></div> <div class="price">$50</div> </li> <li> <div class="menu-title"> <h4>Voluptate cillum fugiat.</h4> <p>Cheese, tomato, mushrooms, onions.</p> </div> <div class="line"></div> <div class="price">$50</div> </li> </ul>
.menu-list{ width:1100px; margin:0 auto; } .menu-list li{ margin-bottom: 64px; }