Skip to content

16pixels.css is a set of CSS rules to ensure consistent 16 pixels based typography. Pixels are used for font sizes and line heights, as well as for paddings and margins. It's like typography normalizer. No dependencies. Wrap your HTML content with class .col and you are done.

License

Notifications You must be signed in to change notification settings

englishextra/16pixels

Repository files navigation

16pixels

16pixels.css is a set of CSS rules to ensure consistent 16 pixels based typography. Pixels are used for font sizes and line heights, as well as for paddings and margins. Can be used as typography normalizer. No dependencies. Wrap your HTML content with class .col and you are done.

npm Codacy Badge CDNJS jsdelivr

16pixels

npm Install

npm install 16pixels

Usage

<!DOCTYPE html>
<html class="no-js" lang="ru">
  <head>
    <meta charset="utf-8" />
    <meta name="HandheldFriendly" content="True" />
    <meta name="MobileOptimized" content="320" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title></title>
    <link rel="stylesheet" href="16pixels.min.css" />
  </head>
  <body>
    <div class="col">
      <h1>Heading&#160;1</h1>

      <p>
        Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
      </p>
    </div>
  </body>
</html>

License

Available under MIT license.

About

16pixels.css is a set of CSS rules to ensure consistent 16 pixels based typography. Pixels are used for font sizes and line heights, as well as for paddings and margins. It's like typography normalizer. No dependencies. Wrap your HTML content with class .col and you are done.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •