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

  • 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. – David Hemsey Dec 22 '15 at 6:55
  • It's not my css, it's bootstrap. Should I go into bootstrap file and write !important all over the classes? – David Hemsey Dec 22 '15 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 Dec 22 '15 at 7:09
  • @PradipR. do I do that for every class in bootstrap? Sorry but it doesn't seem like a valid solution.. – David Hemsey Dec 22 '15 at 8:47
  • See this MSDN thread for more: social.msdn.microsoft.com/Forums/sqlserver/en-US/… – Pradip R. Dec 22 '15 at 9:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.