Should I use normalize.css in my Bootstrap project?
Asked Answered
G

1

89

I can't figure out if I need to add the normalize.css stylesheet in my bootstrap project. I'm using the latest version of bootstrap, v2.3.2.

Granulation answered 17/8, 2013 at 7:14 Comment(0)
K
111

No, you shouldn't.

A modified version of normalize.css is already included in Bootstrap 2.3.2. Here it is.

UPDATE: the docs makes this even more explicit, and now they use the original code, not their fork.

UPDATE: (Bootstrap 4)

For improved cross-browser rendering, we use Reboot to correct inconsistencies across browsers and devices while providing slightly more opinionated resets to common HTML elements.

Source: https://getbootstrap.com/docs/4.1/getting-started/introduction/#reboot

Kherson answered 17/8, 2013 at 7:28 Comment(8)
I dont have any idea what less is and it was confusing me so im using the baisc version of twitter bootstrap. it only has bootstrap.css and bootstrap-responsive.css files. couldnt find any style resets theirGranulation
The normalization rules in bootstrap.css start at line 43 and end at line 222. You see that comparing reset.less with bootstrap.css. I'd suggest to start using less or at least to have an idea about what's its purpose. Finally, you can create customized builds using the tool: getbootstrap.com/2.3.2/customize.htmlKherson
Hmm got it now. So you mean i should start using the full version of bootstrap that inckudes less. is there any good source where i can learn less?Granulation
ive downloaded the full version of bootstrap but i cant see any of the .less files attached in any of the html files of the documents :sGranulation
plus there are so many weird files in the folder that dont even open on my computer lol :) should i just ignore them for now?Granulation
I'd suggest using the less version. Less docs: lesscss.org. Having the source distribution, less files are in less subdir. PS: free to accept/upvote my answer, too :)Kherson
I tried voting but it says i need more reputation for that.:) Your answer was really helpful. Thank you. Im not familiar with less and i dont have enough time to learn it as deadline's near and i have to wind up this project. so i'd stick to the normal version for now. but im really interested in learning how less works. Ill start working on it asap.Granulation
As both the question and answer reference bootstrap 2, just to be completely clear, this is still the case for bootstrap 3 github.com/twbs/bootstrap/blob/v3.3.5/less/normalize.lessCraps

© 2022 - 2024 — McMap. All rights reserved.