I am working on a little table which has several different paddings, I have to put them into a div to make it work.
But I am currently having alot of classes containing only padding: Xpx;
where X corresponds to classname padding-20
. I want to have just one class in my CSS which automatically can assign the correct amount of padding by it's classname.
Is this possible with CSS or is there JavaScript needed to make this work?
Thanks!