+ 2

How to make ul menu horizontal

hy everyone i have some Question about the menu,i write a code ul and want make menu.But i dont know to to make a menu horizontal.I use text align but the menu doesnt move.What css must i use ? Thanks very much

19th Jul 2016, 4:59 AM
Calvin Natanael
Calvin Natanael - avatar
5 Respostas
+ 2
ul li { display:inline }
19th Jul 2016, 8:27 AM
Unai Mengual
Unai Mengual - avatar
+ 2
I use: li { float: left; }
19th Jul 2016, 3:14 PM
ZinC
ZinC - avatar
+ 2
thanks all :D
19th Jul 2016, 5:01 PM
Calvin Natanael
Calvin Natanael - avatar
0
ul li { display:inline-block; } With inline block you add margins and padding to the top and bottom of li element. You can't do that with inline.
20th Jul 2016, 12:13 AM
Tommy Hiers
- 1
ul li{ display: inline;}
20th Jul 2016, 12:34 PM
BRIAN KIPROTICH
BRIAN KIPROTICH - avatar