I have a frame and dynamically applying the 'header' class to the frame. It is working fine but need to add '!important' at the end of each css property.
I applied in the following way but not working.
var divblock = '.header';
$('#frame').contents().find('header').addClass('header');
$('#frame').contents().find(divblock).css({
'color': objProp.css[pageSection]['color']+ '!important',
'background-color': objProp.css[pageSection]['background']+'!important',
'font-size': objProp.css[pageSection]['font-size']+'!important'
});