Display the list items as inline elements. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Display the list items as inline elements.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
li {<!--  ww w .j a  v  a  2  s.  c o  m-->
    display: inline;
}
</style>
</head>
<body>

<h1>This is a Heading</h1>

<ul>
<li>A</li>
<li>B</li>
<li>C</li>
</ul>

</body>
</html>

Related Tutorials