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