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

    提交回复
    热议问题