WebReference.com - Part 2 from Chapter 11 of Cascading Style Sheets A Beginner's Guide, from Osborne/McGraw-Hill (5/5)
[previous] |
CSS: A Beginner's Guide
Mastery Check
Write a style rule for the "img" selector that will cause other elements to "wrap" down the
left side of the image.
Write a style rule for the <div> element that will set its dimensions at 250 pixels
by 250 pixels, give it a background color of navy and text color of yellow, and position it
with absolute positioning so that the box's upper-left corner is in the center of the page.
Use the float property to write style rules that will position three boxes side by side on
the page, beginning at the left side. Use ID selectors to name the boxes "box1," "box2," and
"box3."
The browser window is the point of reference for the __________ positioning scheme.
What is relative positioning relative to?
Write a style rule for the "img" selector that will cause other elements to "wrap" down the left side of the image.
Write a style rule for the <div> element that will set its dimensions at 250 pixels by 250 pixels, give it a background color of navy and text color of yellow, and position it with absolute positioning so that the box's upper-left corner is in the center of the page.
Use the float property to write style rules that will position three boxes side by side on the page, beginning at the left side. Use ID selectors to name the boxes "box1," "box2," and "box3."
The browser window is the point of reference for the __________ positioning scheme.
What is relative positioning relative to?
[previous] |
Created: July 22, 2002
Revised: July 22, 2002
URL: https://webreference.com/authoring/style/sheets/beginners/chap11/2/5.html