Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Overriding CSS styles hardcoded in to the software. Re: Overriding CSS styles hardcoded in to the software.

#102998
alexh58
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!