How do I render
  • side-by-side?
  • 后端 未结 8 671
    情话喂你
    情话喂你 2020-12-29 02:30

    I\'m looking to create a navigation menu with list items rendered in one line. How do I do this?

    8条回答
    •  灰色年华
      2020-12-29 03:16

      ul {
          float: right;  to 
    • go to the Right or Left side } ul li { display: inline-block; padding: 10px; margin-top: 5px; }
    • If you use the "float:" in the "li", the list will invert the sequency.

    提交回复
    热议问题