+ 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
5 Respostas
+ 2
ul li { display:inline }
+ 2
I use:
li {
float: left;
}
+ 2
thanks all :D
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.
- 1
ul li{
display: inline;}