CSS

CSS exercises

Exercise: Bar joke
Use CSS and HTML to make this:

Result

Use a sans serif font. Get the colors about right. Get the spacing about right.

Submit the URL of your solution.

(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)

Exercise: Pets, love, and evil
Make a table like this:

Result

You can change the pets, and the yes/no ratings. You don't have to match the colors and spacing exactly.

Note:

  • The cells all have space around the text.
  • The yes/no ratings are centered.
  • The entire table has a border.
  • Odd and even rows are different.

Hint: mix-in classes might help.

Upload the URL of your solution.

(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)

Keywords: 

Finding problems

The story do far

You know how to make some HTML tags, and how to style them. What happens when things don't look the way you expect?

The developer tools

Browsers have some nice developer tools. Start a browser, look at one of your pages, and press F12.

Select the Elements tab:

Elements

On the left, you can see the page's HTML. Choose an element, and you'll see its styles on the right.

Keywords: