Web Style Sheets CSS tips & tricks

A random collection of CSS examples and some help in using them.
  • Figures & captions
  • A pinned-down menu
  • Indented paragraphs
  • Alternative style sheets
  • A confetti menu
  • Getting rid of colored scrollbars (user style sheets)
  • Even/odd: coloring every other row
  • A tabbed interface
  • A chart comparing font styles
  • Horizontal and vertical centering
  • Boxes with drop shadows
  • Text shadows
  • Rounded boxes and unsharp shadows

Figures & captions

HTML doesn't have an element that allows to insert a figure with a caption. It was once proposed (see HTML3), but never made it into HTML4. Here is one way to simulate such a figure element:

Click to Read More

Followers