+ 1
html, css
how can i make a list inline
1 ответ
+ 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>