Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call the bootstrap files without using CDN?

I have downloaded the bootstrap folder from the site. And i have a folder named demoproject on my desktop and in that the bootstrap folder is present. How should i call these bootstrap files without using CDN so it runs without internet connection.

like image 233
shakira Avatar asked Jan 21 '26 09:01

shakira


2 Answers

Just make sure that the lines in your HTML file that look like this:

<link href="css/bootstrap.min.css" rel="stylesheet">

and

<script src="js/bootstrap.min.js"></script>

are pointing to your local files (similar to shown above) and not to the CDN.

like image 141
Anson VanDoren Avatar answered Jan 25 '26 07:01

Anson VanDoren


Bootstrap with CDN

<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">

<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

Bootstrap with out CDN

<link rel="stylesheet" href="foldername/bootstrap.min.css">

<script src="foldername/bootstrap.min.js"></script>
like image 44
Santhosh BS Avatar answered Jan 25 '26 08:01

Santhosh BS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!