CSS for table

I used the following CSS for a table but the table displays different in monitor 17" and 23".
How to fix it?
Can I change px to %?

td:nth-of-type(1) {
padding-right: 450px;
}
td:nth-of-type(2) {
padding-right: 220px;
}
td:nth-of-type(3) {
padding-right: 30px;
}

Perhaps if you show us your markup as well. We might have a better idea of what you are trying to achieve.

When you post code in the forum, you need to format it. To do so you can either select all the code and click the </> button, or type 3 backticks ``` on a separate line both before and after the code block.

You can. That does seem like a lot of padding for table data. But it’s not clear exactly what it is you want to achieve.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.