Announcements +
the occasional rant

September 27 – External Style Sheets & Extended Deadline

Posted on: September 28th, 2012
The due date for the Scuba/100k assignment is extended to Thursday, Oct. 4 at 5:45. We’ll have a crit as soon as they’re all uploaded.

Here’s how you put all your styles into an external style sheet.

  1. Create a document with the extension .css. For example, mystyles.css.
  2. Put that document in the same directory at the same level as the html document you’re working on. In the same folder, in other words.
  3. Copy all the styles from the head portion of your html document. Just the selectors and declarations – not the <style type=”text/css”>…</style> portion.
  4. Paste the styles into the mystyles.css document.
  5. Delete the styles from your html document.
  6. Link  mystyles.css to your html page by putting this in the <head></head> portion of your page:

<link rel="stylesheet" href="mystyles.css">

And there you have it.

Leave a Reply

You must be logged in to post a comment.

Rant Archives