How to you set all grids in a table to a specific size? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to you set all grids in a table to a specific size?

How to make a 9 by 9 table that is all squares?

9th Nov 2016, 1:55 AM
Timosan Zhou
Timosan Zhou - avatar
1 Answer
+ 2
1. Set the td width: <td width="100" height="100"> </td> 2. Set the td width with CSS: <td style="width:100px; height:100px;"> 3. Set the width again as max and min with CSS: <td style="max-width:100px; min-width:100px; max-height:100px; min-height:100px; width:100px; height:100px;"> If you want to do it with more ease .td_size { width:100px; height:100px; max-width:100px; min-width:100px; max-height:100px; min-height:100px; **overflow:hidden;** } then place the class attribute to any <td> you want: <td class="td_size"> Place the class attribute to any <td> you want.
9th Nov 2016, 7:33 AM
Md Mizanur Rahman
Md Mizanur Rahman - avatar