Use reset.css

CSS Facts

Reset.CSS is used to normalize browser’s default styles that resets the styling of all HTML elements to a consistent baseline.

Every browser has its own default ‘user agent’ stylesheet which use unstyled websites appear more legible. For example default links color is blue and visited links are purple color.

– Some reset stylesheets is harmful for users who rely upon keyboards for navigation.
– If you remove the default behavior for an element and then forget to restyle it then CSS reset stylesheets can represent issues.
– “zeroed” element must then be redefined.

You have to include it before your own style definitions. Otherwise these css styles would possibly override your declarations due to the cascading nature of css.

The “reset” actually “resets” all these css styles to zero or none, so that you do not see any styles you haven’t applied in your page.

You may like:  Margin vs Padding in CSS

Leave a Reply

Your email address will not be published. Required fields are marked *