how to display all the elements in ul li in one line code example Example: how to bring li to same line ul{ overflow:hidden; } li{ display:inline-block; }