Aligning
  • next to each other, not working
  • 前端 未结 4 898
    眼角桃花
    眼角桃花 2021-01-04 22:01

    I have a problem with aligment of two li elements inside a div because in the next example

    HTML

    4条回答
    •  滥情空心
      2021-01-04 22:12

      Add:

      float: Left;
      

      to the css class of the li elements of the menu (in this rule):

      ".menu-left ul li {"

      After the "width: 50%"

      The float property specifies whether or not a box (an element) should float. See http://www.w3schools.com/cssref/pr_class_float.asp

    提交回复
    热议问题