Both the selectors are completely different, what you are doing with this joomla_tables
is you target the table
where joomla targets tr
and td
so you need
.joomla_tables tr,
.joomla_tables td {
border: 0;
padding: 5px;
}
Now the above selector will select all tr
and td
which are nested inside element having a class joomla_tables
.
Joomla targets tr
and td
, you are targeting table
, so using your selector, it does get rid of the table border
but you will still see it, as td
has the border, so just use the selector I provided and it will target the elements perfectly.
For making it more stricter, you can use
table.joomla_tables tr,
table.joomla_tables td {
/* Styles goes here */
}
Note:
tr
don't have borders and paddings, it's thetd
which has borders (It can have borders if you'veborder-collapse: collapse;
)