Your access to this website and/or its content is subject to certain terms and conditions. If you do not wish to agree with the terms and conditions, then you should leave this website immediately.
| Home | Privacy | Legal | Contact | Humour |
Moral Volcano's Universal CSS Font Stack is a basic stylesheet for Web designers to provide native font support for their web pages in almost all popular operating systems including Linux, Mac, and Windows.
In 2009, I switched from Windows XP to Ubuntu Linux. Until then, I was a Mandrake/Mandriva fan but never used Mandriva past the installation. With Ubuntu, sound worked and the modem worked plus a lot other important things - things that I thought only Windows could handle well. After the switch over to Ubuntu Linux, I realized that the text on my website did not look as good in Ubuntu as it did in Windows.
A few days into Ubuntu, I realized that most websites were made for Windows. Linux users were never given a thought.
So, when I redesigned my website, I went for two stylesheets. One was a basic stylesheet that had a font stack to support most modern operating systems including Linux, Mac and Windows. The other stylesheet was a "skin" stylesheet that I could dynamically alter to suit user preferences. (As of October 2009, I have created only one skin stylesheet.)
Here are the design goals of the basic stylesheet.
/*
(c) V. Subhash, 2009.
www.vsubhash.com
Created:
19 May 2009
Updated:
26 December 2009
Description:
Basic "screen" stylesheet with "Moral Volcano Universal CSS Font Stack"
License:
Lesser General Public License
http://www.gnu.org/copyleft/lesser.html
*/
a {
color: navy;
border-bottom: 1px dotted navy;
font-weight: normal;
text-decoration: none;
}
a:visited {
border-bottom-color: purple;
}
blockquote {
border-left: 5px solid whitesmoke;
margin: 1em 10%;
padding: 1em 2em;
}
body {
/* Order: Special,
* Linux (CMU, Liberation, Free, DejaVu),
* Mac (Cyrillic, Central European, UI),
* Windows Vista UI,
* Windows (Non-Microsoft-Core-Web, Non-Microsoft-app-bundled, not
* found in both Mac and Windows),
* Windows XP UI,
* phonetic,
* Mac Unicode, Windows Unicode,
* Adobe Standard Type 1, generic
*/
font: normal 1em "CMU Sans Serif", "Liberation Sans", FreeSans, "DejaVu Sans",
"Helvetica CY", "Helvetica CE", "Lucida Grande",
"Segoe UI",
"Lucida Sans Unicode",
Tahoma,
"Doulos SIL", "TITUS Cyberbit Basic",
"Last Resort", "Arial Unicode MS",
Helvetica, sans-serif;
padding: 1em;
max-width: 9in;
}
code, pre, xmp {
/* Order: Special,
* Linux (CMU, Liberation, Free, DejaVu),
* Mac, Vista, XP,
* Adobe Standard Type 1, generic
*/
font: Lighter 1em "Anonymous Pro", Anonymous,
"CMU Typewriter Text", "Liberation Mono", FreeMono,
"DejaVu Sans Mono",
Monaco, Consolas, "Lucida Console",
Courier, monospace;
}
h1, h2, h3, h4, h5, h6 {
/* Order: Special,
* Linux (CMU, Liberation, Free, DejaVu),
* Mac (Cyrillic, Central European, non-Windows, UI),
* Windows Vista UI,
* Windows (Non-Microsoft-Core-Web, Non-Microsoft-app-bundled, not
* found in both Mac and Windows),
* Windows XP UI,
* phonetic,
* Mac Unicode, Windows Unicode,
* Adobe Standard Type 1, generic
*/
font-family: "CMU Serif", "Liberation Serif", FreeSerif, "DejaVu Serif",
"Times CY", "Times CE", Palatino, "Lucida Grande",
"Segoe UI",
"Palatino Linotype",
Tahoma,
"Doulos SIL", "TITUS Cyberbit Basic",
"Last Resort", "Arial Unicode MS",
Roman, serif;
font-weight: normal;
letter-spacing: 2;
margin: 1em auto 0.2em auto;
}
h1 { font-size: 2.8em; }
h2 { font-size: 2.5em; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.8em; }
h5 { font-size: 1.5em; }
h6 { font-size: 1.2em; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
border-bottom-style: none;
}
li {
font-size: 1em;
line-height: 2em;
margin: 0.2em auto 1.2em auto;
}
ol { list-style-type: decimal; }
ol ol { list-style-type: lower-alpha; }
ol ol ol { list-style-type: lower-roman; }
ol ol ol ol { list-style-type: upper-alpha; }
ol ol ol ol ol { list-style-type: upper-roman; }
p {
font-size: 1em;
line-height: 2em;
margin: 0.2em auto 1.2em auto;
}
pre {
background-color: #EFEFEF;
border: 1px dashed lightgrey;
margin: 1em 5%;
padding: 1em 2em;
overflow-x: auto;
}
---o0O0o---
This article was first published in October 2009.