I have this tags:
<div>
<h1>
</h1>
</div>
Then I have a javascript lib that changes font-size of the <div>
tag, but <h1>
has its own CSS. Then text in <h1>
does not change. I just want resizing font-size of <div>
affecting <h1>
. I cannot change the javascript lib nor the html structure. So, I think that it would be good to have something like
$('div').bind('css-change', function (){
$('h1').css('fontSize',$('div')Text.css('fontSize'));
})
Any ways to have something like .bind('css-change') ?