What dependencies does Bootstrap require for it to work properly?
Asked
Active
Viewed 567 times
0
-
2Possible duplicate of [Applying CSS styles only to certain elements](http://stackoverflow.com/questions/11831346/applying-css-styles-only-to-certain-elements) – Parth Patel Aug 31 '16 at 06:07
-
What exactly are you trying to achieve? Bootstrap is a CSS framework which helps you with providing certain styles out-of-the-box for the whole website. Which styles exactly do you want for one simple paragraph? You could imitate Bootstrap for it, instead of importing the whole framework just for it. – Lazar Ljubenović Aug 31 '16 at 06:07
-
@ParthPatel no it is not duplicate of that.. Check now i edit it more concisely – Rebecca Joanna Aug 31 '16 at 06:18
-
@ParthPatel remove your duplication – Rebecca Joanna Aug 31 '16 at 06:19
-
@RebeccaJoanna Bootstrap has nothing to do with AJAX and PHP. Twitter Bootstrap is a CSS/JS framework which helps you with common frontend stuff. It doesn't mess with AJAX calls, and definitely not with a back-end technology such as PHP. – Lazar Ljubenović Aug 31 '16 at 06:21
-
@LazarLjubenović can we link it with php files – Rebecca Joanna Aug 31 '16 at 06:23
-
Take a look at [Getting started](http://getbootstrap.com/getting-started/#download) page from official Twitter Bootstrap site to see how to import Bootstrap into your project. PHP has nothing to do with it. – Lazar Ljubenović Aug 31 '16 at 06:28
-
okay Thanks.. Is my question is relevant or bad question? – Rebecca Joanna Aug 31 '16 at 06:31
-
@RebeccaJoanna you just need to add references of bootstrap.css and bootstrap.js. Explore the official documentation of bootstrap it will help you to get started – Parth Patel Aug 31 '16 at 06:34
-
okay Thanks @ParthPatel remove ur duplication from my question – Rebecca Joanna Aug 31 '16 at 06:36
-
You always can see the dependencies in his official repo, check the bootstrap repo on github, and probably you'll see a main javascript file and a css main file ( minified or not ) thats your question, but what you should do as @ParthPatel said is check the official doc, a getting started guide. – Héctor León Aug 31 '16 at 06:41
-
@HéctorLeón ok thanks alot – Rebecca Joanna Aug 31 '16 at 06:43
1 Answers
1
You can add below CDN links in your html :
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

Abhijeet
- 4,069
- 1
- 22
- 38