+ 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/#
2 Respuestas
+ 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.
0
Gabriel Jon Peery Thx a lot.😄