+ 1

Question about tables

If I set a fixed value to the width of a table, if the content inside the cells is large, they will increase in height, right? to increase the height of a cell relative to the next below, do I have to increase the size of the height by adding the size of the contents inside the cell? example: if the contents inside of the cell is 40px, so to creat a space 10px between first tr and second tr, I need to set 50px?

12th Mar 2017, 3:25 PM
Anderson Borges
Anderson Borges - avatar
2 Answers
+ 3
If I understand your question correctly, you want to make sure there is always equal space between each table row (tr)? To do that you should just have to add a bottom margin value to your tr in the CSS.
13th Mar 2017, 12:36 AM
Mary-Ann Burton
Mary-Ann Burton - avatar
+ 2
for that case , you need to add a margin: 10px on your CSS for the table tr
14th Mar 2017, 1:21 AM
Welliton Malta
Welliton Malta - avatar