Container Query Card
Create a basic card that is made responsive with container queries.
Submission
Push your completed deliverable to your GitHub deliverable repository.
Due: Wed Nov 8, 2023
Starter Code
open_in_newGitHub Repo
# Instructions
In your deliverables repository, create a 08-container-query-cards folder within the assignments folder.
Using the supplied starter code (opens new window), recreate the card design as shown in the video below and in the screenshots folder within the starter code.
- You must use
@containerqueries withmin-widthsizing. - Apply responsive
font-sizeto the title, text, and.btnusingcqiandclamp() - You are not permitted to add any
@mediaqueries - You are not permitted to change or remove the CSS code between the comments
REQUIRED STYLES FROM PROF DO NOT DELETE - STARTandREQUIRED STYLES FROM PROF DO NOT DELETE - END - You are not permitted to change the
htmlin any way. This includes adding or removing classes.
# Styling
Make sure to include the CSS Reset and audit previous deliverables for reusable styles!
- This may seem complicated, but it should only require one
container-styleand one@containerto accomplish.- I added complexity with all of the different layouts to show that with a very simple
@containerwe can make something flexible to a lot of different layouts.
- I added complexity with all of the different layouts to show that with a very simple
- To create the overlapping card design, with the text on top of the image, you will need to use the
positionproperty.- Hint: you will need to use it twice. One element gets
relativeand another getsabsolute.
- Hint: you will need to use it twice. One element gets
- You should be setting an
aspect-ratiofor the different card sizing. See the Pro Tip - Image Aspect Ratio at the bottom of the Assignment 07 - Card Group
# Submission
Submit this assignment by pushing your code to your mad9013-deliverables repository with the commit message Complete 08-container-query-card assignment.
Heads Up!
This assignment is due on the Wednesday after the standard Sunday timeline. This is so that you can focus on the submission for Project 1 - Two Page Site.