CSS: Flowing List

By Xah Lee. Date: . Last updated: .

This page shows you how to use CSS to flow list items.

Here's a flowing list.

Here's HTML:

<ul class="flowlist05781">
<li>Cat</li>
<li>Dog</li>
<li>Bird</li>
</ul>

Here's CSS:

ul.flowlist05781 li {
display:inline;
list-style-type:none;
margin:0.5em;
border:solid thin red;
}

You can also use display:inline-block.

Flowing list is particular useful if you have image thumbnails and you want to flow them.

Liket it? Put $5 at patreon.

Or, Buy JavaScript in Depth

If you have a question, put $5 at patreon and message me.

Web Dev Tutorials

  1. HTML
  2. Visual CSS
  3. JS Basics
  4. JS in Depth
  5. JS Reference
  6. DOM
  7. SVG
  8. JS Misc