3

I have a SharePoint app, where I am using an html page, not .aspx.

I referenced bootstrap, but the style for the buttons is being retrieved from corev15app.css, not from bootstrap (btn-primary).

How can I force the bootstrap library to be loaded after sharepoint css. I can't use cssregistration, right?

Any hint is appreciated

7
  • 1
    @PradipR. I don't want to override bootstrap.css classes. Seems you didn't get my question. There's a script corev15app.css, which is overriding bootstrap scripts. Commented Dec 22, 2015 at 6:55
  • It's not my css, it's bootstrap. Should I go into bootstrap file and write !important all over the classes? Commented Dec 22, 2015 at 7:00
  • can you give a try like this in dom ready $("head").append($("<link rel='stylesheet' href='bootstrap.css' type='text/css' />"));
    – Azam Khan
    Commented Dec 22, 2015 at 7:09
  • @PradipR. do I do that for every class in bootstrap? Sorry but it doesn't seem like a valid solution.. Commented Dec 22, 2015 at 8:47
  • See this MSDN thread for more: social.msdn.microsoft.com/Forums/sqlserver/en-US/…
    – Pradip R.
    Commented Dec 22, 2015 at 9:01

0

Your Answer

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

Browse other questions tagged or ask your own question.