I am trying to align list items together in two unordered lists side by side:
list element 1 list element 1 list element 2 list element 2 list element 3 list element 3 that wraps list element 4 list element 4
right now the list on the left will not be wrapped by the list on the right, instead it shows
list element 1 list element 1 list element 2 list element 2 list element 3 list element 3 that list element 4 wraps list element 4
How can I build them correctly? right now i have this setting:
CSS
.col {float:left;width:150px;}
HTML
<div class="col"> <ul> <li> list element </li> </ul> </div> <div class="col"> <ul> <li> list element </li> </ul> </div>
thank
, , HTML. , , , , . , , , <table> .
<table>
- <table>. CSS . , , . . , , ! CSS, . ? , , , .
<ul> , <table>. , , . , , , , javascript .
<ul>
, , height li. li , . , , , li3 . - jQuery HTML li3 li3s. jQuery , . HTML .
-
<table> <tr> <td class="col"> <ul> <li> list element </li> </ul> </td> <td class="col"> <ul> <li> list element </li> </ul> </td> </tr> </table>
Source: https://habr.com/ru/post/1777501/More articles:CSS text overflow - cssMap function in C ++ with templates - c ++JSF - creating a dynamic menu using AJAX and selectOneListbox - ajaxIs there a standard pointer size declaration? - cКто-нибудь знает хороший быстрый и грязный синтаксический анализатор текста/грамматики? - parsingIs this a web application vulnerability? - securityHow to install this node.js binary / module? - node.jsDefining the current user (Gmail contextual gadget) - authenticationHow to Post a Glassfish War in Eclipse - eclipsePython libxml2 XPath / Namespace help - pythonAll Articles