New Styles Added

Posted on: May 8th, 2005 1:03 AM GMT

By: Greg Reimer (Code Monkey Extraordinaire)

Topic: tech, web design, CSS, tinkering

Two new styles have been added to the Presentation Engine™ (a CSS file) to rave customer review. Their purpose is to better display emails and source code in block-quoted form. Currently, blockquoted material looks like this:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris id dui. Aenean sagittis aliquet erat. Pellentesque laoreet porttitor turpis. Curabitur non velit nec nulla porttitor aliquam. Ut congue, elit non mollis adipiscing, quam quam venenatis turpis, cursus auctor velit orci vel lacus. Cras id nulla. Maecenas eget purus eu purus mollis dapibus. In ultrices odio ultricies dolor.

That won't change, but now, by adding a little class labeled "email" or "code" to a block-quoted or preformatted section, it renders a custom formatting that looks like this:

import java.util.*;
class CellularAutomata {
    private boolean[] line = null;
    private boolean[][] template = {
    public CellularAutomata() {
    public void randomizeLine() {
    // rest of the program

This may seem like a "so what?" thing to you, but it's the kind of stuff that makes it fun to work on this website, just adding a small enhancement here and there.

weblog home »
show all posts »