A2-1 Instructions
A2-1 Instructions
This assignment is a continuation of the previous assignment with a focus on the application of CSS float
to generate multi-column layouts. The expected outputs for home and plants page are given blow:
1. Copy the entire case study folder “ggarden1.3” and name the copy as “ggarden2.1”
Task.2 - HTML
1. Use an unordered list to organize navigation links inside both the main <nav> and those quick
links in <footer>
2. On each page, add a header link that refers to the home page
<section class=”item25”>
<h3><span class=”icon”>icontext</span>subheading</h3>
</section>
Where “icontext” is a placeholder that should be replaced with the following Unicode icons in
order:
a. ♚
b. ☙
c. 🌤
d. ⚘
5. On plants page, switch the source code order of <h3> and <img> inside of each <section> (inside
the <div> with id=“categories”)
CSS
1. Float <nav> to the left; then expand the width of <nav> band by increasing the left and right
padding of “nav a” to 40px while keeping the top and bottom padding to 10px; using the
selector “nav a:hover” to style an “hovered” link with text shadow value: “0px 0px 1px rgb(20,
70, 20)”;
2. Apply “overflow:hidden” to <main> to clear float due to <nav>; visualize the left border of
<main> with a consistent light color (e.g., rgb(158,194, 143));
3. Using the descendant selector “h1 a” to remove the default underline of header link text and
change the text color to “#eee”; then move the text shadow from <h1> to the “:hover” pseudo-
class of header link instead;
4. Configure “.item33” class to float to the left, and move all styles for the selector “footer > div” to
“.item33”; then clear float on both sides of the “#copyright”
5. Configure “.icon” class as “block” display, and set the font size to 3em and text color to
“rgb(35,102, 12)”
6. Configure “.item25” class to float to the left with a width of “25%”, and align text to “center”; to
clear float, apply “overflow:auto” on “#multicol”;
7. Float the selector “#catgories section” to left and set the “width” to “50%” to generate a two-
column layout locally;
8. For images inside “#categories”, double the size to “160px” in both width and height, and float
them to the left; then apply “overflow:auto” on “#categories section” to clear float. To align the
top of subheading (<h3>) text with the top of corresponding image, set “margin-top” of <h3>
inside “#categories” to “0”. As the size of images increases, It’s necessary to apply “object-
fit:cover” to those images to avoid observable distortion.
9. Lastly, set width of “wrapper” to “90%”.