COURSE CALENDAR | WEEK 05 CLASS OUTLINE | Homework

  1. Review student Portfolio sites
    • If your web site is not set up with proper XHTML structure and/or is not functioning properly, fix it now.
    • It should look like this, with REAL content on the index and resume pages.
    • Your site window should look like this:
  2. site structure image

  3. Review mockups and color schemes in Photoshop/Illustrator
    • Have your main hexadecimal colors and specific font available.
  4. Introducing CSS Cascading Style Sheets for presentation.
  5. Creating a CSS document in Dreamweaver MX
    1. Go to Dreamweaver > Preferences > CSS Styles > deselect all check boxes and According to settings above. [Screenshot]
    2. Create a new style sheet file by going to File > New > choose Basic Page and CSS. Save this file to your root directory, naming it main.css. Close the file.
    3. Open your resume.html page
    4. Open the CSS Styles panel by going to Window > CSS Styles.
    5. Click on the attach style sheet button at the bottom of the CSS Styles panel. Browse for main.css, the style sheet you just created in your root directory. Choose the link method.
    6. Click on the Edit Styles button at the top of the CSS Styles panel and then click New CSS Style button at the bottom of the panel.
    7. Select TYPE: Redefine HTML Tag and create the following styles using the TAG pull down menu. Type Selectors: body, h1, h2, h3, h4, p, ul, li
    8. Use CSS Selector for LINKS: a:link, a:visited, a:hover, a:active
  6. link states

  7. Use the Type Category to style the font, color and size.
  8. Use the Box Category for setting margins and padding
    • Box Properties
    • Control text element margins (h2, h3, p, ul) by setting top margins to 0 and set spacing via bottom margins
    • List margins and padding are displayed differently by different browsers. A good starting point is to set ul margins and padding to 0 and li margins to 0. Adjust the indent by increasing the ul margin-left.
  9. Use the Background category to set up background color
    • In order to begin to understand the box model we will temporarily give each element a background color and experiment with padding, margin and border.
    • About the Background property
  10. Throw out everything we've done today and START OVER. The only way to learn CSS is to practice.

Homework | Week 5

Create one external style sheet and attach it to all the pages in your site. Refer the class links above for extra help. This very basic stylesheet should follow your defined color scheme, based on your mockup.

Include the following in your style sheet:

Sample CSS file

Sample resume page with CSS file linked