Answers for "table trong bosttrap"

2

bootstrap table row span

<td colspan="2">Content here</td> // or...
<td rowspan="2">Content here</td>
Posted by: Guest on July-03-2020
0

bootstrap break table row

I have this : 
|  1  |  2  |  3  |        4        |

I want this : 
|     1     |     2     |     3     |
|                 4                 |

- HTML :

<tr>
  <th scope="row">1</th>
  <td>2</td>
  <td>3</td>
  <td>4</td>
</tr>

- CSS : 

td:nth-child(4) {
  display: block;
  width: 100%;
}
th,
td:nth-child(2),
td:nth-child(3) {
  display: inline-block;
  width: 33%;
}
Posted by: Guest on February-16-2021

Browse Popular Code Answers by Language