HTML and CSS Reference
In-Depth Information
Figure Ac2-2
cornucopia Online recipe page
20. Go to the
cprint.css
file in your text editor. Add a rule to set the page size to 8.5 inches
by 11 inches in portrait mode. Set the page margin to 0.3 inches.
21. Create a style rule to hide the
header
,
nav
, and
footer
elements.
22. For
h1
headings within the
article
element, create a style rule to: a) set the font size
to 18 points; b) set the font weight to bold; and c) set the bottom margin to 0.2 inches
and all other margins to 0 inches.
23. For
h2
headings within the
article
element, create a style rule to: a) set the font
size to 16 points; b) set the font weight to bold; and c) set the top and bottom mar-
gins to 0.2 inches, and the left and right margins to 0 inches.
24. For paragraphs within the
article
element, create a style rule to set the font size to
14 points and the margin to 0.1 inches.
25. For unordered lists within the
article
element, create a style rule to: a) set the font
size to 12 points; b) set the list style type to
disc
; c) set the left margin to 0.3 inches;
and d) avoid page breaks within the list.