How can I show some Block elements in one line? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can I show some Block elements in one line?

I want to show some <li> tags in one line like online elements... how can I change my css attributes to do this? https://code.sololearn.com/Wn6V2dwWlAf5/?ref=app

19th Sep 2017, 9:03 PM
HaSSaN Doodiyan
HaSSaN Doodiyan - avatar
4 Answers
+ 14
Exactly as said by Dmitry, you should also remove or increase the "width" property of the <ul> element in order to see all the items inline. Fixed: https://code.sololearn.com/WSCtXaQ7E4N7/?ref=app Improved: https://code.sololearn.com/WSGOJtOiCnz1/?ref=app Feel free to use it if you need.
19th Sep 2017, 9:15 PM
Maz
Maz - avatar
+ 2
thanks.
19th Sep 2017, 9:14 PM
HaSSaN Doodiyan
HaSSaN Doodiyan - avatar
+ 2
^ ^ ^ || || ||
22nd Sep 2017, 6:49 PM
Jason Wade
Jason Wade - avatar
+ 1
You should change 'display' property.
19th Sep 2017, 9:13 PM
Dmitry Semigradsky
Dmitry Semigradsky - avatar