CSS: An Overview
Bordering on insanity

Many HTML elements support the border property. This can be especially useful with tables.

The border property in turn supports several values. For example, for a border 2 pixels thick, solid, and red, you'd type

selector {
    border: 2px solid red;

Borders: pretty fancy.


In the stylesheet.css tab:

  1. Set your tds (table data cells) to have a height of 50px so we can see them better when we add our border.
  2. Give your tds a border of 1px dashed blue.
  3. Give your table a border of 1px solid black.
Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

If you're getting weird values for your heights or border widths, try resetting your zoom with Ctrl-0 or Cmd-0.

View Preview