2

I am trying to make this master page in SP 2013, I have added this into my html for the master page:

<!--SPM:<SharePoint:CssRegistration name="&lt;% $SPUrl:~sitecollection/_catalogs/masterpage/mysite/templatemo_style.css %&gt;" runat="server" after="corev15.css" />-->

There are some styles that are overridden by corev15.css, although I made it after corev15, I tried to make those styles !important in my .css file, but that didn't work and still styles from corev15 are overriding my styles.

1 Answer 1

1

CSS has a hierarchy of applying. First CSS from external files, then CSS inside the file and at highest priority the inline CSS. So you could tryout inline or CSS inside the file with the !important tag.

3
  • Hi Malin, as I mentioned, I used the !important but that didn't work as well, I made my reference to be After=corev15.css but didn't work too. Commented Sep 1, 2014 at 12:17
  • Did you try inline style? Commented Sep 1, 2014 at 12:21
  • No :( I still have SharePoint overriding my styles. No one replied here as well.. Commented Sep 3, 2014 at 23:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.