1. One type of positioning that will cover up stuff below it is ______. (Give me either one.)
That's correct. Well done!
The correct answer:
absolute or fixed
Press Tab or click button to advance to next exercise.
2. The other type of positioning that will cover up stuff below it is ______.
That's correct. Well done!
The correct answer:
absolute or fixed
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
3. To make an element invisible to humans, fill in the blank.
______: hidden;
That's correct. Well done!
The correct code:
visibility
Press Tab or click button to advance to next exercise.
4. To make an element invisible to humans, fill in the blank.
visibility: ______;
That's correct. Well done!
The correct code:
hidden
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 an invisible div.
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.
Code the line that makes something invisible to humans.
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.
Code the first two lines of a div with an id of no-see that's going to be invisible.
Press Tab or click button to advance to next exercise.
That's correct. Well done!
8. If this is the HTML for an absolutely positioned div followed by an invisible spacer div, code the line that's missing from the invisible div.
<div id="header">
<h1>Loris Mania</h1>
<div>
<div id="spacer">
</div>
That's correct. Well done!
The correct code:
<h1>Loris Mania</h1>
Press Tab or click button to advance to next exercise.
9. Code all three lines of styling for an image class for images that the user won't see. Make up the class name.
That's correct. Well done!
Example:
img.inviz {
visibility: hidden;
}
Press Tab or click button to advance to next exercise.
10. Code the first two lines of a div that will cover up stuff unless you create a spacer for it. Make up the ID. Your choice of positioning.
That's correct. Well done!
Example:
div#banner {
position: absolute;
Press Tab or click button to advance to next exercise.
11. What keyword do you use to override the default stack order?
That's correct. Well done!
The correct code:
z-index
Press Tab or click button to advance to next exercise.
12. Code a line that demotes an element to 1 layer below its default stack order.
That's correct. Well done!
The correct code:
z-index: -1;
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. Code the first two lines of a div with an id of no-see that's going to be invisible.
Press Tab or click button to check answer.
The correct code:
div#no-see {
visibility: hidden;
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
14. Time goal: 25 seconds. If this is the HTML for an absolutely positioned div followed by an invisible spacer div, code the line that's missing from the invisible div.
<div id="header">
<h1>Loris Mania</h1>
<div>
<div id="spacer">
</div>
Press Tab or click button to check answer.
The correct code:
<h1>Loris Mania</h1>
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. Code all three lines of styling for an image class for images that the user won't see. Make up the class name.
Press Tab or click button to check answer.
Example:
img.inviz {
visibility: hidden;
}
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
16. Time goal: 35 seconds. Code the first two lines of a div that will cover up stuff unless you create a spacer for it. Make up the ID. Your choice of positioning.
Press Tab or click button to check answer.
Example:
div#banner {
position: absolute;
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
17. Time goal: 15 seconds. What keyword do you use to override the default stack order?
Press Tab or click button to check answer.
The correct code:
z-index
Press Tab or click button to advance to next exercise.
Press Tab or click button to advance to next exercise.
18. Time goal: 15 seconds. Code a line that demotes an element to 1 layer below its default stack order.
Press Tab or click button to check answer.
The correct code:
z-index: -1;
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