I have subsite page(home.aspx) which for some reason inherits the css from a script editor in default.aspx(parent page). I'm basically changing the color of home.aspx css webpart header, I want it to be red in the home.aspx page. For some reason the parent's page Script editor style overrwrites it.
how do i prevent this from happening. (note that this is when you edit page and create a script editor with style. Below are the screenshots:


!importantBecause when it is applied it can no longer be undone by any other CSS rule in the page. Instead learn to apply CSS Specificity ; which is applied in OPs screenshot where you see.ms-Webpart-titleTextused 2 times (in the first Selector) So if you apply the class a 3th time, you increase Specificity. Documentation: See: stuffandnonsense.co.uk/archives/css_specificity_wars.html