CSS Worksheet
CSS Worksheet
Instructions:
Hint:
The color property accepts named colors, HEX codes, and RGB/RGBA values. Try to use a unique color like
"Zaffre" to make your text stand out.
Instructions:
Hint:
Use the background-color property to set the container’s color and the padding property for internal
spacing.
Instructions:
● Create an HTML container (e.g., a <div>) with at least three child elements.
● Use CSS to convert the container into a flex container.
● Center the child elements using properties such as justify-content: center and
align-items: center.
Hint:
Flexbox makes aligning items straightforward. Experiment with additional properties like flex-direction
and gap if desired.
CSS Worksheet: Exercises
Instructions:
Hint:
Try using individual side properties (e.g., margin-top, padding-left) to observe the effects on specific
sides of the element.
Instructions:
Hint:
Experiment with grid-template-areas for the CSS Grid layout and adjust Flexbox properties within your
navigation to see how they affect alignment. Use media queries to create a design that responds gracefully to
different screen sizes.