Skip to content
Permalink
Newer
Older
100755 49 lines (34 sloc) 1.87 KB
Jan 28, 2020
1
[HTML5 Boilerplate homepage](https://html5boilerplate.com/) | [Documentation
2
table of contents](TOC.md)
3
4
# The CSS
5
6
HTML5 Boilerplate's CSS includes:
7
8
* [Normalize.css](#normalizecss)
9
* [main.css](#maincss)
10
11
This starting CSS does not rely on the presence of
12
[conditional class names](https://www.paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/),
13
[conditional style sheets](https://css-tricks.com/how-to-create-an-ie-only-stylesheet/),
14
or [Modernizr](https://modernizr.com/), and it is ready to use no matter what
15
your development preferences happen to be.
16
17
18
## Normalize.css
19
20
In order to make browsers render all elements more consistently and in line
21
with modern standards, we include Normalize.css — a modern, HTML5-ready
22
alternative to CSS resets.
23
24
As opposed to CSS resets, Normalize.css:
25
26
* targets only the styles that need normalizing
27
* preserves useful browser defaults rather than erasing them
28
* corrects bugs and common browser inconsistencies
29
* improves usability with subtle improvements
30
* doesn't clutter the debugging tools
31
* has better documentation
32
33
For more information about Normalize.css, please refer to its [project
34
page](https://necolas.github.io/normalize.css/).
35
36
37
## main.css
38
39
Several base styles are included that build upon `Normalize.css`. These
40
styles:
41
42
* provide basic typography settings that improve text readability
43
* protect against unwanted `text-shadow` during text highlighting
44
* tweak the default alignment of some elements (e.g.: `img`, `video`,
45
`fieldset`, `textarea`)
46
* style the prompt that is displayed to users using an outdated browser
47
* and more...
48
49
These styles are included in [main.css](https://github.com/h5bp/html5-boilerplate/blob/master/dist/css/main.css). See the [main.css](https://github.com/h5bp/main.css) project [documentation](https://github.com/h5bp/main.css/blob/master/README.md#features) for a full discussion of these styles.
You can’t perform that action at this time.