+ 4

[fixed] How to make table look like square?

Check this code , I want make 8*8 table but it looks like rectangle . vertical and horizontal space between cells is not same so table looks rectangular. edit:- fixed check code again https://code.sololearn.com/Wl1k3a8pHet5/?ref=app

18th Jan 2018, 7:25 PM
code learner
code learner - avatar
4 Answers
+ 3
if u want 2*2 u can declare 2 tr and 4 td if u want 3*3 3tr and 9 td if u want 5*5 then 4tr and 16td here 2*2 means having 2 rows no of boxes will be 4 it means we have 2 riws and 2 colums this tags is used in html
19th Jan 2018, 12:07 AM
gnaneswari kolathuru
gnaneswari kolathuru - avatar
+ 3
add some spaces between columns to compensate the new line between rows
19th Jan 2018, 4:34 AM
seamiki
seamiki - avatar
+ 2
@gnanesgwari I know that,I have created 8*8 table but due to more vertical space between cells , table doesn't look like a square board, its height is slightly more and looks rectangular
19th Jan 2018, 4:04 AM
code learner
code learner - avatar
+ 1
question edited
19th Jan 2018, 4:50 AM
code learner
code learner - avatar