CSS

CSS: figures & captions, pinned-down menu, indented paragraphs, alternative style sheets, confetti menu, getting rid of colored scrollbars (user style sheets), even/odd: coloring every other row, a tabbed interface, font styles, horizontal and vertical centering, boxes with drop shadows, text shadows, rounded boxes and unsharp shadows.

CSS tips & tricks:

A random collection of CSS examples and some help in using them.

<img

Scaling the image, figures & captions, putting the caption on top, figures in XHTML.

ShowLearn more

href

Pinned-down menu.

The menu you see in the top right corner of this page is simply a DIV with some A elements inside.

ShowLearn more

<p

Indented paragraphs.

Here is something simple: indenting the first line of each paragraph. Many people find that easier to read than empty lines between the paragraphs, especially for long texts, and it also allows to reserve empty lines for more important breaks.

ShowLearn more

<link

Alternative style sheets.

A document doesn't need to have a single style sheet. You can give it a default style and any number of alternatives for the reader to choose from.

ShowLearn more

<menu

A confetti menu.

The colorful menu you see below is simply a DIV element with a few P elements inside.

ShowLearn more

align

Centering things.

A common task for CSS is to center text or images. In fact, there are three kinds of centering: Centering lines of text, Centering a block of text or an image, Centering a block or an image vertically

ShowLearn more

» Send question

Author:

E-mail:

Home

Coolf

Websites

Positioning

Cooperation

About

Contact