CSS Problem

0
Hi All, i want to add percentage icon to a column, but ‘%’ apear on border too. My CSS is: .MyPercentageClass ::after {     content: '%';     right: 2px; } Thanks
asked
2 answers
0

.MyPercentageClass td ::after {
    content: '%';
    right: 2px;
}

.MyPercentageClass th ::after {
    content: '%';
    right: 2px;
}

 

This should work

answered
0

Thank you Joshua,

but your Code no longer displays the Percentage icon. I understand it is correct to use ‘td’ and ‘th’, but i don’t understand why when we use them, the icon no longer shows.

 

answered