li {    display: inline-block; }

Read more of this post