Archive —

"All your character needs now is a name, and the only stipulation here is that the name be no longer than Rumpelstiltskin."

October 30, 2003

I seriously want to marry CSS.

With CSS you, yes you, you, the reader, the user, you can override any styles with your custom user style sheet. You can specify general rules for how headers, paragraphs, lists etc. should be rendered across a plethora of web sites. But you can also specify rules that apply to specific sites only. Like, say, my site. On my <body>, I've got the attribute and value id="havard-no-ip-info". With CSS, you can use descendant selectors (or any other contextual selector) to define styles which apply to my site only:

body#havard-no-ip-info {
  background: red;
  color: purple;
  font-family: "comic sans ms", gautami, raavi, sans-serif;
  line-height: 5.2;

body#havard-no-ip-info hr {
  background: #000;
  color: #000;
  border: 0;
  height: 5px;

body#havard-no-ip-info h1 {
  display: none;

The values used here are purely for demonstration; please don't rape my site by using the Comic Sans MS font.

<< | Previous entry (October 28, 2003) | Next entry (November 2, 2003) | >>
Back to Archive