Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bootstrap 4 - When to use reboot css and grid css?

I am trying to migrate my application from bootstrap 3.3.7 to Bootstrap v4.0.0-alpha.6.

When I downloaded the Bootstrap v4.0.0-alpha.6 into my project using NuGet, I saw bootstrap-reboot.css and bootstrap-grid.css in addition to bootstrap.css.

enter image description here

I tried to go through the document and understand their purpose but, I am not getting a clear picture.

What is the use of those two css files? Do I really need to include them in my project?

like image 553
JGV Avatar asked Mar 15 '17 23:03

JGV


People also ask

What is the use of reboot in Bootstrap?

Reboot, a collection of element-specific CSS changes in a single file, kickstart Bootstrap to provide an elegant, consistent, and simple baseline to build upon.

Does Bootstrap reset CSS?

No, bootstrap. css includes normalize. css at the beginning of the file, and the bootstrap-theme. css file is optional according to the document.

Does Bootstrap use normalize CSS?

No, you shouldn't. A modified version of normalize. css is already included in Bootstrap 2.3.

What is SCSS reboot?

scss that builds on Normalize with reset styles. Reboot is a single file that has a collection of element-specific CSS changes. These features help provide a stylish, reliable and a start point to build front end displays. We can further add the styling to the HTML elements with the help of classes.


1 Answers

bootstrap.css should contain all the CSS you need to use Bootstrap in your project.

The files bootstrap-reboot.css and bootstrap-grid.css are cut down versions containing just the necessary styles for reboot and Bootstrap's flexbox grid respectively. They are to be used if you don't want to include the entirety of Bootstrap in your project and will only be making use of either of these features.

The docs explain it here: https://getbootstrap.com/docs/4.1/getting-started/contents/#css-files

like image 194
Liam Hammett Avatar answered Sep 20 '22 14:09

Liam Hammett