Answers for "css htmll div in columns"

CSS
1

html list over three columns

ul {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
}
Posted by: Guest on March-02-2020
0

how to make two column list in html

<code>ul{
  width:760px;
  margin-bottom:20px;
  overflow:hidden;
  border-top:1px solid #ccc;
}
li{
  line-height:1.5em;
  border-bottom:1px solid #ccc;
  float:left;
  display:inline;
}
#double li  { width:50%;} <span class="code-comment">/* 2 col */</span>
#triple li  { width:33.333%; } <span class="code-comment">/* 3 col */</span>
#quad li    { width:25%; } <span class="code-comment">/* 4 col */</span>
#six li     { width:16.666%; } <span class="code-comment">/* 6 col */</span></code>
Posted by: Guest on June-08-2020

Browse Popular Code Answers by Language