Answers for "css columns and rows"

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

rows and columns in html

<!--
tr = row
td = cell
-->

<table>
  <tr>
    <td>1,1</td>
    <td>1,2</td>
    <td>1,3</td>
  </tr>
  <tr>
    <td>2,1</td>
    <td>2,2</td>
    <td>2,3</td>
  </tr>
  <tr>
    <td>3,1</td>
    <td>3,2</td>
    <td>3,3</td>
  </tr>

</table>
Posted by: Guest on May-27-2021
10

css grid

.item-a {
  grid-area: header;
}
.item-b {
  grid-area: main;
}
.item-c {
  grid-area: sidebar;
}
.item-d {
  grid-area: footer;
}

.container {
  display: grid;
  grid-template-columns: 50px 50px 50px 50px;
  grid-template-rows: auto;
  grid-template-areas: 
    "header header header header"
    "main main . sidebar"
    "footer footer footer footer";
}
Posted by: Guest on April-12-2020

Browse Popular Code Answers by Language