So I'm doing a project which uses bootstrap. I have my files in htdoc>DocumentRepository
<link rel ="stylesheet" href ="C:\xampp\htdocs\DocumentRepository\Bootstrap\bootstrap-3.3.5-dist\css\bootstrap.min.css">
<link rel ="stylesheet" href ="C:\xampp\htdocs\DocumentRepository\Bootstrap\bootstrap-3.3.5-dist\css\bootstrap-theme.min.css">
But the problem is running it on localhost doesn't include any of the bootstrap. Please help me with this!
</div>
As I guess it should be something like this in your page.
<link rel ="stylesheet" href ="css/bootstrap.min.css" type="text/css">
<link rel ="stylesheet" href ="css/bootstrap-theme.min.css" type="text/css">
Keep all files extracted bootstrap file in CSS directory.
You may also use CDN.
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
There is no need to use or no need to include files from root drive like your linking.
href ="C:\xampp\htdocs\DocumentRepository\Bootstrap\bootstrap-3.3.5-dist\css\bootstrap.min.css"
In your htdocs folder first you create a main project folder like this Bootstrap Directory style in Htdocs
Then your folders are in the Inside Project Folder
Then in the inde.html or index.php add link like these style
<link ytpe="text/css" rel="stylesheeet" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/bootstrap.min.js"></script>
And if other things are perfect then code will run perfectly.
if your bootstrap or any css or jquery file inside htdose folder then you have to write http://localhost/ and then name of folder if you have inside the htdose otherwise direct write the name of file then extention
In any linux system, when the directory starts with "/" then the location for your bootstrap file. Thus, just add the file like src="path/file" and the should work