1. What is the CSS word you use to increase or decrease the default spacing between characters?
That's correct. Well done!
The correct code:
letter-spacing
Press Tab or click button to advance to next exercise.
2. If you want to separate words by more or less space, what word do you use?
That's correct. Well done!
The correct code:
word-spacing
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. What unit of measurement do you use for spacing? (Answer with a plural.)
That's correct. Well done!
The correct answer:
ems
Press Tab or click button to advance to next exercise.
4. What is the word for increasing or decreasing white space between lines?
That's correct. Well done!
The correct code:
line-height
Press Tab or click button to advance to next exercise.
5. Drag-and-drop: Holding down the left mouse button, drag the pieces of code onto the screen to create a class of heading named "airy" that increases word-spacing slightly.
6. Click in the box and type the next character. I'll autocomplete. Don't type spaces or carriage returns. When the exercise is complete, I'll turn the exercise number green.
Style all paragraphs with default word spacing.
That's correct. Well done!
Press Tab or click button to advance to next exercise.
7. Fail-safe coding. If you type the wrong character, I'll cancel the keystroke. Type spaces. When the exercise is complete, I'll turn the exercise number green.
Create a class of h3 headings named "tight" that decreases word-spacing .2 ems.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. Create a class not tied to an element that increases letter-spacing by any amount you choose. Make up the name.
That's correct. Well done!
Example:
.open {
letter-spacing: .1em;
}
Press Tab or click button to advance to next exercise.
9. Create a class of heading (your choice of size) that tightens word-spacing by any amount you choose. Make up the name.
That's correct. Well done!
Example:
h3.right {
word-spacing: -.1em;
}
Press Tab or click button to advance to next exercise.
10. Style all headings of a particular size (your choice of size) with default letter-spacing.
That's correct. Well done!
Example:
h3 {
letter-spacing: 0;
}
Press Tab or click button to advance to next exercise.
11. Style all headings of a particular size (your choice of size) with default space between lines.
That's correct. Well done!
Example:
h3 {
line-height: 1.2em;
}
Press Tab or click button to advance to next exercise.
12. Style all paragraphs with roughly 1-1/2 spaces between lines.
That's correct. Well done!
Example:
p {
line-height: 1.8em;
}
Press Tab or click button to advance to next exercise.
The next several exercises are timed. If you type slowly or dislike time pressure, feel free to increase the allotted time.
13. Time goal: 35 seconds. Create a class of h3 headings named "tight" that decreases word-spacing .2 ems.
Press Tab or click button to check answer.
The correct code:
h3.tight {
word-spacing: -.2em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 35 seconds. Create a class not tied to an element that increases letter-spacing by any amount you choose. Make up the name.
Press Tab or click button to check answer.
Example:
.open {
letter-spacing: .1em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
15. Time goal: 35 seconds. Create a class of heading (your choice of size) that tightens word-spacing by any amount you choose. Make up the name.
Press Tab or click button to check answer.
Example:
h3.right {
word-spacing: -.1em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 30 seconds. Style all headings of a particular size (your choice of size) with default letter-spacing.
Press Tab or click button to check answer.
Example:
h3 {
letter-spacing: 0;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 30 seconds. Style all headings of a particular size (your choice of size) with default space between lines.
Press Tab or click button to check answer.
Example:
h3 {
line-height: 1.2em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 30 seconds. Style all paragraphs with roughly 1-1/2 spaces between lines.
Press Tab or click button to check answer.
Example:
p {
line-height: 1.8em;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
19. Access this live coding exercise at JS Fiddle. When you've completed the exercise, close the JS Fiddle window, and you'll be returned to this page. (If JS Fiddle displays a warning message saying that your changes will be reset, click Leave this Page.)
Click button to advance.
20. Access this live coding exercise at JS Fiddle. When you've completed the exercise, close the JS Fiddle window, and you'll be returned to this page. (If JS Fiddle displays a warning message saying that your changes will be reset, click Leave this Page.)
Click button to advance.
Post a review on Amazon for the paperback or the Kindle edition.
Email me to give me a compliment, complaint, or correction. I'll respond.
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
1
0