I have a website with a lot of css
functions. I want to start using bootstrap
features in it as well. The problem is : my website has classes with the same name as bootstrap and some features are crashing.
I am trying to do it like this solution: apply external CSS to specific area But when I try to include a page in a section like this :
<section class="main" style="min-height:460px">
<style scoped>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="${ctx}/scripts/bootstrap-select.js" ></script>
<script src="${ctx}/scripts/bootbox.min.js" ></script>
<script src="${ctx}/scripts/jquery.bootpag.min.js" ></script>
@import url("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css");
@import url("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css");
@import url("/ilocate-ws/css/bootstrap-select.css");
</style>
...
</section>
The css part works but the scripts don't load.
Nevertheless the "normal" declarations like :
p {
padding:1em;
margin:1em;
border-radius:5px;
}
This works just right.
My questions is:
1) Am I doing the includes
in the right way?
2) If not, how should I do it?
Thanks!