Showing posts with label typography. Show all posts
Showing posts with label typography. Show all posts

Tuesday, February 28, 2012

Making Mrs. Baker Beautiful

Now we have been studying typography for about 3 days. You know things about font size, color, line-height, letter-spacing, word-spacing, font families, font weights, serifs, text alignment, etc. Finish up by making Mrs. Baker beautiful.
  1. Add CSS to your Mrs. Baker page to make her page sizzle. Add at least one (1) CSS declaration for ALL of the above typography areas.
  2. Make sure your CSS has at least four (4) comments to explain what you are doing.
  3. Validate your CSS code using the W3C validator.
    http://jigsaw.w3.org/css-validator
  4. Take the quiz on CSS!

Tuesday, February 21, 2012

Tackling Typography

From the Standardistas book...
Typography is often defined in traditional terms referring to the world of print - books, magazines, newspapers...in short, anything printed. Typography, however, isn't just appropriate to print, it's also appropriate to everything we create onscreen. In short, anywhere that type is used. 

typography-n 1. the art or process of setting and arranging types and printing from them; 2. the style and appearance of printed matter
- Concise Oxford Dictionary (Clarendon Press, 1990)

typeface - refers to a font family, for example, Times New Roman
font - refers to one instance of this typeface; for example: Times New Roman, Italic, 12 pt.
On the web these terms are used interchangeably.



Inheritance
Inheritance - The "cascading" in CSS refers to the chain of inheritance in the way style rules are applied. Inheritance considers the relationship between tags to be a "parent-child" relationship. The "body" tag is the parent of the "p" tag; the p" tag is the parent of the "em" tag and so on. Technically speaking, we say the "p element is descended from its parent element, the body."

The following chart illustrates inheritance:

Parent tags "pass on" their traits (CSS properties and values) to their children. So, if you set the body text color to be gray-black #333333, then  all the p tags will use the same color, and so will lists unless you specify a different color in the css declaration for the child tags. We say that child tags "inherit" rules applied to the parents. Sounds, easy, right? Well, 75% of the time, it is, but there are some curious situations and stumbling blocks that need explaining.

User Agent Styles, Author Styles, User Styles
Run this experiment and see if you can find the answer...(using your noggin!)

Create a new page and set the body CSS rules as follows:


Now, add an h1 tag and then type a sample paragraph and wrap it in p tags. (two sentences will work). We expect that all the text on the page will display in Arial, which it does. (because of the rules if inheritance). But why, oh why, doesn't the h1 text display in size 14 px? Can you answer this conundrum?




What are ems? Don't confuse ems with the emphasis tag. ems are a relative measurement based on the size of the parent element. ems are great for making your page accessible to all and allowing folks to resize their browsers/text size on their own.

QUICK MATH LESSON:
MOST browser built-in style sheets have a DEFAULT paragraph text size of 16px; that is, unstyled p elements display in size 16 px font. (using the browser's default style sheet).

If we set the body default size to 62.5%, then our default  body font size is now 10px;
Like this:
body
{
font-size: 62.5%
}

(because 62.5% of 16 is 10.)
 10 is a nice round number. It makes the math for the rest of your style sheet easy to do:

Now, if you want the paragraph text to show up in 14pt. font you can set the CSS as follows:

p{
font-size: 1.4 em;
}





We will answer this in class.
Keep working on your Ms. Baker page...
Assignment: Add in some new CSS declarations with selectors and values:
Show me your page and CSS when you have added or changed the values for all of the following items:


  • font-size:  (8px  or 2em;)
  • font-family: arial, helvetica
  • font-weight (normal, bold, 100, 200, 300, ...700)
  • text-transform: (uppercase, for example)
  • font-variant: (small-caps)
  • letter-spacing: (use ems)
  • word-spacing: (use ems)
  • line-height   (use ems to specify)
  • text-align  (left, right, center, justify)  Avoid "justify" on the web
  • text-decoration (none, for example)






Monday, March 7, 2011

Change of Pace/Direction. Listen Up!

Gents:

We are going to switch things up a bit. Hark! Listen up. Important directions are found herein:
In the hopes of continuing to encourage stellar design work, spark creativity/work ethic and make project evaluation (grading) and peer-reviewing more efficient, we are going to modify our testing and display framework for our projects. As such the essential information you must possess is this: WE ARE GOING LIVE!

We now have a class site here:
http://studenthost.sehsapps.net/

Each of has a folder inside the root of the site. Upload your files to YOUR folder only.  You can view your files and folders live on the web. Post school-appropriate material only or I will delete it and you will lose credit and possibly face other sanctions...

I will give you FTP directions in class to upload your pages. You may still use XAMPP for testing, if you wish, but all grading will take place from the live site. (studenthost.sehsapps.net)

Here is today's agenda:
  1. Check to make sure you have completed the Design Festival Typography article and emailed me your 3 answers to the questions.
  2. Finish your links page assignment (Styling links - see the previous post) and upload it to your folder. This is especially important for those of you who don't have a grade yet. (See NetClassroom for grades.)
  3. Begin uploading your pages to your folder.
  4. Create your "homepage" by renaming a blank file as "index.html." Upload it to your folder.
  5. On your index.html page, create links to three of your previous assignments and upload them as well.
    For example you might choose your typograpy lesson, your links lesson, and your Ms. Baker page to upload.
  6. These will function as your PORTFOLIO. 
  7. Begin to dress up your index.html page. Make it beautiful. Add some basic CSS to it. Make it yours and make it shine. We will continue to add to it as we progress to June!
  8. Get crackin!

Thursday, March 3, 2011

The Missing Links

Gents:
Agenda:
Item#1 --- Finish up your Miss Baker typography lesson and show me the result for a grade.
 - - - - -

Item #2 --- Read this article (http://designfestival.com/2011/top-10-dos-and-donts-of-web-typography)  and answer the following questions in an email to Mr. Seiler. Copy and paste the Question into the email when you provide an answer.
a) Why should we NOT put continuous text in all capitals? 
b) Why is contrast important to typogrpahy on a website?
c) What are some general guidelines for applying HEADINGS/HEADLINES to a page?
 - - - - -

Item#3 --- Complete the hyperlink lesson as described below. Due date: End of class on Friday. 

Now we finish up our typography unit by concentrating on links. Hyperlinks, that is. Hyperlinks are typically styled in CSS by using what we call pseudo-classes. What are are styling is the tag, of course, and it has 5 "states" that we style:
LINK - the way the hyperlink looks before the user clicks it.
VISITED - the link has already been clicked
ACTIVE - the way the link looks "during" the actual click (doesn't last long)
HOVER - when you mouse-over the link
*FOCUS - when the user tabs through the links using the tab key; this is a KEY feature for accessibility.

Mnemonic device to remember this: LoVe-HAte Friends

To remove or not remove the link underline? That is a debate among designers and there is currently no "right" or "wrong" answer on that topic. It is up to you.

An example of the code is below:

a: link 
{
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
}




Assignment:
  1. Create a new, blank X(HTML) page (strict) and choose a school-appropriate topic.
  2. Create a heading 1 (Example: "The ins and outs of canine care")
  3. Write a thoughtful, well-reasoned paragraph on the topic (no research needed, just make sure it makes sense) Don't forget those tags!
  4.  Create a heading 2 called "Further Reading"
  5. Add 5 links to sites that provide further reading on your school-appropriate subject.
  6. Most importantly for this assignment - STYLE the links - all 5 states - Link, Visited, Hover, Active, Focus
  7. Show me your page and code when you are finished.

Monday, February 28, 2011

Tackling Typography

From the Standardistas book...
Typography is often defined in traditional terms referring to the world of print - books, magazines, newspapers...in short, anything printed. Typography, however, isn't just appropriate to print, it's also appropriate to everything we create onscreen. In short, anywhere that type is used. 

typography-n 1. the art or process of setting and arranging types and printing from them; 2. the style and appearance of printed matter
- Concise Oxford Dictionary (Clarendon Press, 1990)

typeface - refers to a font family, for example, Times New Roman
font - refers to one instance of this typeface; for example: Times New Roman, Italic, 12 pt.
On the web these terms are used interchangeably.



Inheritance
Inheritance - The "cascading" in CSS refers to the chain of inheritance in the way style rules are applied. Inheritance considers the relationship between tags to be a "parent-child" relationship. The "body" tag is the parent of the "p" tag; the p" tag is the parent of the "em" tag and so on. Technically speaking, we say the "p element is descended from its parent element, the body."

The following chart illustrates inheritance:

Parent tags "pass on" their traits (CSS properties and values) to their children. So, if you set the body text color to be gray-black #333333, then  all the p tags will use the same color, and so will lists unless you specify a different color in the css declaration for the child tags. We say that child tags "inherit" rules applied to the parents. Sounds, easy, right? Well, 75% of the time, it is, but there are some curious situations and stumbling blocks that need explaining.

User Agent Styles, Author Styles, User Styles
Run this experiment and see if you can find the answer...(using your noggin!)

Create a new page and set the body CSS rules as follows:


Now, add an h1 tag and then type a sample paragraph and wrap it in p tags. (two sentences will work). We expect that all the text on the page will display in Arial, which it does. (because of the rules if inheritance). But why, oh why, doesn't the h1 text display in size 14 px? Can you answer this conundrum?




What are ems? Don't confuse ems with the emphasis tag. ems are a relative measurement based on the size of the parent element. ems are great for making your page accessible to all and allowing folks to resize their browsers/text size on their own.

QUICK MATH LESSON:
MOST browser built-in style sheets have a DEFAULT paragraph text size of 16px; that is, unstyled p elements display in size 16 px font. (using the browser's default style sheet).

If we set the body default size to 62.5%, then our default  body font size is now 10px;
Like this:
body
{
font-size: 62.5%
}

(because 62.5% of 16 is 10.)
 10 is a nice round number. It makes the math for the rest of your style sheet easy to do:

Now, if you want the paragraph text to show up in 14pt. font you can set the CSS as follows:

p{
font-size: 1.4 em;
}





We will answer this in class.
Keep working on your Ms. Baker page...
Assignment: Add in some new CSS declarations with selectors and values:
Show me your page and CSS when you have added or changed the values for all of the following items:


  • font-size:  (8px  or 2em;)
  • font-family: arial, helvetica
  • font-weight (normal, bold, 100, 200, 300, ...700)
  • text-transform: (uppercase, for example)
  • font-variant: (small-caps)
  • letter-spacing: (use ems)
  • word-spacing: (use ems)
  • line-height   (use ems to specify)
  • text-align  (left, right, center, justify)  Avoid "justify" on the web
  • text-decoration (none, for example)