With which files should you use the <link> tag with Bootstrap?

Asked

Viewed 545 times

2

I’m studying about the Twitter Bootstrap and I have a question: with which files should use the tag <link>? Are all files or just some specific files?

2 answers

3

You can include only the bootstrap.min.css, the bootstrap-Theme.min.css is optional, in case you want to take advantage of some styles of a standard theme or in case you want to edit it and create a custom theme.

NOTE: If you install via Bower or clone the repository, you have the option to use LESS and include only the files relating to the modules you are using.

  • Thank you @Diego Lopes Lima I managed to use the mechanism.

2


Only these should serve :

<link href="bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="bootstrap-theme.css" rel="stylesheet" type="text/css" />
<script src="bootstrap.min.js" type="text/javascript"></script>

With this you reference not only the css bootstrap, as well as the theme that you can do an overload, but also the js file that will allow the use of javascript functions!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.