Horizontal list using display inline

Setting the display property to inline is an alternative to setting the float property to left.

  1. li{
  2. display: inline;
  3. margin-right: 20px;
  4. list-style: none;
  5. }

Add new comment