Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

the last element in ul goes to next row

Tags:

html

css

in my ul list the last element goes to next line. I want all li elements on one row. And secondly when I make my browser smaller then when login link gets close to ul, it (login link) also goes to next line. I want them to be in one row.

Here is my code jsfddle

like image 530
Om3ga Avatar asked Oct 07 '22 09:10

Om3ga


1 Answers

You float everything, which may confuse the system.

How about you remove the float from the ul, so it will take up all the available width. And to keep the login link to the right of the ul, you can place the login link above the ul.

See updated jsFiddle.

like image 174
Mr Lister Avatar answered Oct 13 '22 11:10

Mr Lister