CSS HTML Stylesheet

Last Updated: Apr. 30th 2022 at 7:33pm Tags: blog css html

The HTML CSS style sheet is one of the files I use with my own personal CSS framework.

I’ve posted the actual file I use and explain how it works.

There was an interesting article on snook.ca that brings up a few good points of why not to use a CSS reset. Unlike snook’s author I was able to come up with a quick solution for this reset problem. As the browser only changes html elements, you will only need to reset them here.
I place my resets in this file.

My HTML CSS file is also often referred to as typography or base style sheet.
I use this file to store all my css for my html tags.
The purpose of the file is to set some value for HTML tags after the reset has styled the page.

I try to stay away from using styles that will affect layout, like margins and padding, but not resets.

Nick Yeoman’s HTML Style Sheet


/**
* Author: Nick Yeoman
* html.css
* v1.1
* Last Updated: June 7, 2011
* Documentation: https://www.nickyeoman.com/blog/css/51-css-html
**/

html, body, p {
  font-family: verdana;
}

ul li {
  margin-left:15px;
  list-style-type:square;
}

b, strong {
  font-weight:bold;
}

i,em {
  font-style: italic;
}

a:link,a:visited,a:active,a:hover {
  text-decoration:none;
  border-bottom:1px dotted;
}

Reference

Comments

You need to login to comment.