Part 1: Type Selectors
Instructions:
You are to fill in the CSS only. Do not change the HTML markup
- Target main and give max-width of 1500px.
- Target section and make max-width 1000px, margin auto, and give it an outline of 2px solid black. Only 5px will show, the rest will be hidden by the content.
- Target ordered and unordered lists and give them a decimal list-style and 20px padding.
- Target h1 through h6 and set font-size to 1.5em, font-weight to 700, color to #555 and padding to 30px top, 0px on the sides and 10px on the bottom.
- Target paragraphs and list items and set the line-height to 1.2em and margin to 7px top, none on the sides and 3px on the botom.
-
- Target the header and color the background orange.
- Target article and color the background silver;
- Target article list items and make the background lightgreen.
- Target h1 and turn the type gold and background black. Hint, type is color. Center the text using text-align and increase font size to 3em.
- Target h2 and make the background yellow and a left-padding of 35px.
- Target the text spanned in this sentence and color it rebeccapurple while coloring the type white. Named in honor of Eric Meyer's little girl who died of brain cancer at the age of 6.
- Target the <span> in the Universal Selector article and color the background red
- Target the paragraphs in this article and make the text bold.
- Target body and give 10px padding on top and bottom and 25px padding on the sides and give the body a pink background color.
- Target the h2, p, and ol and give left margin of 15px.
- Target the list items in the header and change their display to inline-block.