Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I include bootstrap.css and bootstrap-responsive.css together?

Should I include two css file or one is enough?

<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" media="all" /> <link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.min.css" media="all" /> 

OR

<link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.min.css" media="all" /> 
like image 265
Mohammad Ali Akbari Avatar asked Jul 12 '12 15:07

Mohammad Ali Akbari


People also ask

Can you use both CSS and Bootstrap together?

Yes. You will want to put your additions in a separate file and link it below the bootstrap. css link. Then you can add your own classes and/or overwrite the Bootstrap classes in your own file.

Does Bootstrap help with responsive design?

Bootstrap includes a responsive, mobile first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes predefined classes for easy layout options, as well as powerful mixins for generating more semantic layouts.

Where should you put the Bootstrap CSS link?

Place the following <script> s near the end of your pages, right before the closing </body> tag, to enable them.


1 Answers

Bootstrap 2

You should include both, the first one defines all the styles for html elements whilst the second one adds responsiveness to the layout.

Bootstrap 3

Only one css file will be included.

Happy coding!

like image 192
mattimatti Avatar answered Sep 21 '22 20:09

mattimatti