+ 1

Make html tables shorter

I need help to shorten this code of html tables ,so the codes will be much shorter. It will help me a lot, thx. https://code.sololearn.com/Wj5xG6d2lXqK/#

26th Aug 2018, 4:39 PM
I-Giovano
I-Giovano - avatar
2 odpowiedzi
+ 1
You can set a height attribute in your css file for your table rows. The element is <tr>, I have pasted the code below. tr{ text-align : center; height: 12px; } Edit: Unfortunately when it comes to HTML tables, there is a lot of syntax that goes into them. Outside of using css to remove the need for your <br> elements. Alternatively you could use <div> elements, and maybe make it a little shorter. Perhaps someone else out there has a trick you may use but I unfortunately don’t have a better solution.
26th Aug 2018, 6:00 PM
Gabriel Jon Peery
Gabriel Jon Peery - avatar
0
Gabriel Jon Peery Thx a lot.😄
26th Aug 2018, 6:10 PM
I-Giovano
I-Giovano - avatar