How do I render
  • side-by-side?
  • 后端 未结 8 614
    情话喂你
    情话喂你 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:17

      One of the best resources on the subject is http://css.maxdesign.com.au/listamatic/ (a little outdated though).

      They suggest both li {display: inline;} and li {float: left;} depending on the effect you want.

      Look for example their "Simple horizontal list" http://css.maxdesign.com.au/listamatic/horizontal01.htm

      0 讨论(0)
    • 2020-12-29 03:18
      ul {display: inline;} 
      ul li { list-style: none;display: inline;}
      
      0 讨论(0)
    提交回复
    热议问题