+ 5
Is there any way to keep list elements straight in an html file?
it's just like i have a list of multiple items. and i need to place them all in my code. so is their any way to place them all in a straight line. let's understand this with an examle- <ol> <li> list1 </li> <li> list2 </li> <li> list3 </li> <li> list4 </li> <li> list5 </li> </ol> i need to convert this multiple line code into a straight liner one. suggest me how?
5 Answers
+ 5
@saju it is really working. thank u for your feedback. it'll useful for me..
+ 3
đ
+ 2
try using li{ display:inline-block; } in css
+ 1
what do you mean? can you give us an example please. :)
+ 1
Yes, you can use :
⢠li { display: inline-block }
"OR"
⢠li { float: left }