Home › Forums › CSS › Overriding CSS styles hardcoded in to the software. › Re: Overriding CSS styles hardcoded in to the software.
May 17, 2012 at 5:36 pm
#102998
Participant
You could use this: https://css-tricks.com/override-inline-styles-with-css/ if you don’t care about ie6, cause I don’t.
Or you could do jQuery, but you might find yourself writing more than you want to… an example
$('td').removeClass('newClassName'); // this removes the provided class name of all tds
// or
$('td').removeAttr('width'); // this removes the width attribute of all tds
// or
$('td').css('width', '30px'); // this makes an inline width definition of 30 pixels
// also, in jQuery 1.4 and higher
$('td').css({'width' : '30px', 'height' : '50px'}); // feeding css values as a JSON array
Hope that helps!