How to make the float left and float right on the same line?

后端 未结 5 2345
长发绾君心
长发绾君心 2021-02-20 09:26

The Problem:

     **The left part** (#nav ul li) which float: left
     and **the right part** (#nav .search) which float: right
            **are n         


        
5条回答
  •  鱼传尺愫
    2021-02-20 10:04

    Have you tried adding the search as another list item within your nav and floating that to the right?

  • See the example below:

    http://jsfiddle.net/teWP5/

提交回复
热议问题