Reasons not to use CSS reset?

I heard that many developers do not recommend using CSS reset, what is the reason for this?

for example: What are the rules for portable CSS?

+4
source share
3 answers

When using CSS reset, many HTML elements become unusable: titles have smaller borders and no borders, input elements are erroneously defined, etc. You need to restore all these elements, which works more.

Some people believe that this destabilizing / restyling process is unnecessary, error prone and that it eliminates some of the necessary differences between platforms. In particular, input elements are usually created by the browser in accordance with its host platform (windows, mac, etc.), and some people believe that user interface consistency should be respected even inside the browser.

+4
source

CSS Reset is found there to normalize CSS in browsers and gives you simpler and more intuitive design features.

For example, if you use <h1> without CSS reset / normalization, it will have larger font-size , some margin s and bold font-weight , with CSS reset, it will look like plain text, and it allows you to shape it like this as you want without worrying about browser settings, which may vary between browsers.

The question you have to ask yourself is , do you want it ?

Remember that CSS Reset need not be absolute if you want to remove all fields and paddings, but keep the font size and weight, you can use the classic * { padding: 0; margin: 0; } * { padding: 0; margin: 0; } * { padding: 0; margin: 0; } , and then use a full-featured CSS reset.

+1
source

If you create a website and you know html and CSS as a back, if your hand, and you can test directly on all major operating systems without compromise, you can fix errors / conflicts with old browsers, or you create a website only for one browser.

You may not need CSS reset, or you would be better off making your own.

But if you are creating a typical modern website, and you want to avoid conflicts between browsers, the reset sheet should β€œset” the html elements for a similar playing field.

Many reset sheets interfere with styling too much, all you really need is the default, like CSSesta or Eric Meyer

0
source

All Articles