How to make a table from ul tag using CSS
问题 I have UL element inside it there is 3 li tags I want to put them next to each other separated by lines: <ul> <li>value 1</li> <li>value 2</li> <li>value 3</li> </ul> I want the output to look like this: value 1 | value 2 | value 3 BTW in the li tags their is a picture and a text, I want them (image & text) next to each other and in the center of the box using CSS. 回答1: ul li { // EITHER float: left; //Will make all li's be on a single line. // OR display: inline-block; //Always followed by: