+ 1

html, css

how can i make a list inline

26th Sep 2016, 4:47 PM
Ahmed Kamal
Ahmed Kamal - avatar
1 Resposta
+ 1
<!DOCTYPE html> <html> <head> <title>Display list inline</title> <style type="text/css"> li{ display: inline; } </style> </head> <body> <ul> <li> <!--just chang the style of list "display" to "inline"--> 1 </li> <li> 2 </li> <li> 3 </li> <li> 4 </li> <li> 5 </li> <li> 6 </li> </ul> </body> </html>
26th Sep 2016, 4:58 PM
Hein Htut Aung