html - How can I make <li> elements flow left-to-right instead of top-to-bottom? -
Here's my How can I do this? Edit : The difference between the color of each Li element and its Bach color and an element and the limitation of the Li element? & lt; Li & gt;
& lt; Div class = "nav" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "test" & gt; Trial & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "test" & gt; Trial & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "test" & gt; Trial & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "test" & gt; Trial & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "test" & gt; Trial & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt;
I think you should
li {display: inline; }
Comments
Post a Comment