George C. Gordon Library
Web Development Office

WPI Style Sheets

This document is under construction and was last updated: Tuesday, 09-Nov-2004 08:58:58 EST

The official style sheet should be used whenever possible to provide a consistent feel to all WPI maintained web sites. Among other things, these style sheets also cause sidebar navigation and bottom navigation to automatically disappear when printing to utilize the whole sheet of paper.

If the template for the site does not currently use style sheets, the official one can be used by inserting the following in your head:

<link rel="Stylesheet" type="text/css" href="/format.css">
<link rel="stylesheet" type="text/css" media="print" href="/formatprint.css">

If you wish to use your own style sheet to customize the official styles for your site, you should include it between these two lines.

When using the WPI style sheets, do not add any formatting tags and attributes such as font, color, bgcolor, or align. The style sheets will automatically these things. However, you can tell the template special cases by adding the class attribute to them. This page describes the styles and possible classes you can use.

For official webmaster@wpi.edu maintained pages, if you cannot find a style that does what you want, do not create a new style sheet, contact Troy Thompson (tbt@wpi.edu) and he can find an applicable style or add a new one to the template.

Alignment

Headings

Spacing below headings has been mostly eliminated to create better visual grouping of the headers and the information below them. Do not over-ride this by adding extra br's after headers.

Top Navigation Links

Sometimes on long pages, you may wish to put a list of anchor tags at the top of the page to jump down to each section. This style is also used to display page number links such as calendars and photo albums.

Indenting

To indent text, use styles rather than ul, ol, blockquote etc.

Lists

Block Quotes

Big Eye-Catching Text

Equations

Footnotes

Fine Print

Non-Wrapping Text

Images

Border is automatically removed for all images on the site. Do not set hspace, vspace, or border attributes since this is done using CSS.

Right/Left Aligned Images



Caption Here


Large, Multiple Side-by-Side, or Center Aligned Images

Thumbnails Page

To set up thumbnails for a photo album, instead of using a table, use style sheets. This way, the thumbnails will fill the width of the window. Thumbnails should be 100px x 150px or 150px x 100px.

Multiple Columns

In general, you should not put body text in multiple columns. If, however, you have long lists of dates, options, etc with very few words in each item, multiple columns can save vertical space and scrolling.

Rather than use a table for these lists, use style sheets. This way, the list can be put back into one column if being viewed on a narrow screen such as a PDA or if people have style sheets disabled.

Callouts

Callouts are used to add additional tidbits of information, a tool related to the page, or portal type module information. They should not be used to have multiple columns of body text.

Standard Callout

Standard Sample

Lorem ipsum dolor sit amet, consectetaur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Filled Callout

Filled Sample

Lorem ipsum dolor sit amet, consectetaur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Tables

class="format", border, and cellpadding has been depricated. Please see below.

Tables should be coded properly using tds for data cells, and ths for column and row headers.

Depending on the type of table you're creating, you should use a different table class.

Data tables

Forms

Schedules & Agendas

Calendars

Archive lists

Maintained by webmaster@wpi.edu
Last modified: Nov 09, 2004, 08:58 EST
[WPI] [WDO] [Back] [Top]