Week 2: xHTML & CSS are BFF.

What is CSS? CSS stands for Cascading Style Sheet. They are called “cascading” because CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so-called cascade, priorities or weights are calculated and assigned to rules, so that the results are predictable. Rules are inherited, but inheritance is different from the actual cascading.

Parts that make up CSS:

selector { property:value;}

selector : Describes what you want to control
property: What is being affected
value: how it is affected.

Inline Styles

We uses these last week. They are handy for exceptions in the body of your text, but you don’t get the full benefit of creating styles, and it tends to muck up your code. These are the types that we did last week.

<p style=”background:yellow>Use me,
<span style=”font-weight:bold”>DON’T ABUSE ME!</span>
</p>

Embedded Styles

These go into the head of your document enclosed in style tags. They look like this:

<style type=”text/css”>
p {font:Arial, Helvetica, sans-serif;
color:#00FF00;}
</style>

External Stylesheet

Or the most powerful kind, which are linked from an external css file by a link tag in the head of your xHTML doc.

<link href=”styles.css” rel=”stylesheet” type=”text/css”>

The CSS in your css page looks just like what would go in the inside of your style tags in the embedded style.

Properties

Let’s have fun with these different properties. To learn more about properties, click through the sections in this CSS resource.
  • background
  • color
  • bgcolor
  • font-size
    • px (pixel)-smallest unit of measure on a screen
    • pt (point) – smallest unit of measure for a font. 1/12 of a pica
    • pica – 1/6 of an inch
    • em –defines the proportion of the letter width and height with respect to the point size of the original font. Nice way to change font sizes relative to the other fonts on the page
    • % (percent)
  • font-family
  • font-weight
  • line-height
  • letter-spacing
  • text-decoration
  • font-variant
  • text-transform

Colors for the web

  • The W3C has listed 16 valid color names for HTML and css:aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow
  • To access all of the other colors available, you must use the Hexadecimal number:
    (#000000, #CC33FF, #39A74F, etc)
  • These are numbered by their RGB values
    • eg. #00FF00 is rgb (0,255,0)
    • The combination of Red, Green and Blue values from 0 to 255 gives a total of more than 16 million different colors to play with (256 x 256 x 256).
  • Refer to this online color chart for web-safe colors

The font-family property

  • The font-family property specifies the font for an element.
  • The font-family property can hold several font names as a “fallback” system. If the browser does not support the first font, it tries the next font.
  • There are two types of font family names:
    • family-name
    • generic-family
  • Start with the font you want, and always end with a generic family, to let the browser pick a similar font in the generic family, if no other fonts are available.

New Tags

Hyperlink: A hyperlink uses an anchor tag

There are two different types:
  • External: <a href=”http://www.google.com”>This goes to google. </a>
  • Internal: <a href=”resume.html”>This goes to my resume page, which is in the same folder as the page that this link is on. </a>
Image Tag
<img src=”http://www.flickr.com/people/huong/danceparty.jpg”>

Assignment:

  1. Using what you know about CSS, format the resume that you set up last week.
  2. Post 3 links of interest and 3 reference links in the “links” section of your blog.
  3. Read Chapters 1-3 from Don’t Make Me Think. You should have book by now. Leave a comment about the reading on your blog.
  4. Post a link to your blog from your resume page.

Leave a Reply

Week 14: Work it!

Almost there! YOU CAN DO IT. I believe in you!!!!

To help you out on your final flash adventures, here are the examples for the day:
Random Animation
Here are some new flash examples.
Sound with Pause
Input Text

Video

The best way to add video for right now is to import the video through the File>Import> Import to Stage menu into an FLV player (top option in the window that opens). You can then convert this video to a moviclip and target as you would other movieclips.

Preloader

Take a look at the example. Basically, I’ve set it up so that it stops on the first frame and keeps checking to see if the whole movie has been loaded (# of bytes). If it has, it plays. Otherwise, it changes the text and the size of the bar. Make sure to simulate download when checking the preloader.

Loader

This is for loading other swf files and jpgs. It’s really handy because then you can build parts separately and add them as needed. It saves on download time, and is great when working in teams.

Sound: Play and Pause

Here, we add some code to our previous simple_sound file in order to keep track of where the song was when we pause it, and then play it in that spot again.

For next week:

We will start at the beginning of class, so have everything ready to go. Test it out, practice a simple presentation of the project, and think of it as an opportunity to practice presenting yourself to an audience. Good luck! I’m looking forward to seeing everyone’s hard work.

Week 13: The Home Stretch!

OMGOMGOMG! Only 2 more classes before the final! Let’s use our time wisely. I’ll run through examples that might be helpful for your final. You ask me questions. Let’s go!

Details »

Week 12: Frame Control, Variables

Check back over the blog post for Week 11, and review the files in the link. To start you thinking about other things that you can do with Actionscript, download this file, and run the examples. See if you can understand how they are programmed.
Details »

Week 11: Actionscript

We’ll take our first look at Actionscript today and talk about our final projects.
Details »

Week 10: Flash

Let’s continue Flash today with Tweens!
Details »

Week 9: Flash!

Flash was always my first love. It combines time-based image editing format with programming and multimedia capabilities! It is a great way to add fluid animation and interaction to your design, and it frees you from the grid constraints of xhtml/css.

Details »

Week 8: Javascript & JQuery

Welcome back! Hope you a restful break and enjoyed the lovely weather. Let’s jump back into things with look at the basic structure of Javascript and JQuery!
Details »

Week 7: Portfolio Presentation and Javascript

Today, you’ll present your portfolio websites and we’ll learn a little Javascript.
Details »

Weeks 5 & 6: Portfolio Lab

We’ll continue working with HTML and CSS today, exploring tables, menus, and images. You’ll begin turning your portfolio designs into live websites!

Details »

Weeks 4: Advanced CSS/Images

Today, we’ll review CSS positioning and explore some tricks with images. We’ll also learn how to use tables and make sitemaps.

Details »