Challenge: Responsive Layouts in Practice
Task
Complete the provided HTML structure by filling in the missing Tailwind CSS classes according to the given layout requirements.
- The container should have padding that changes at different breakpoints;
- Default padding:
p-4; - At
smbreakpoint:p-6; - At
mdbreakpoint:p-8; - At
lgbreakpoint:p-10; - At
xlbreakpoint:p-12.
- Default padding:
- The text should have different colors and sizes at different breakpoints.
- Default text size:
text-base, color:text-gray-700; - At
smbreakpoint:text-lg, color:text-gray-600; - At
mdbreakpoint:text-xl, color:text-gray-500; - At
lgbreakpoint:text-2xl, color:text-gray-400; - At
xlbreakpoint:text-3xl, color:text-gray-300.
- Default text size:
index.html
- For the container, use
p-4 sm:p-6 md:p-8 lg:p-10 xl:p-12; - For the text, use
text-base sm:text-lg md:text-xl lg:text-2xl xl:text-3xl text-gray-700 sm:text-gray-600 md:text-gray-500 lg:text-gray-400 xl:text-gray-300.
index.html
Everything was clear?
Thanks for your feedback!
SectionΒ 5. ChapterΒ 2
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you show me where to place these Tailwind classes in the HTML structure?
Do you have a specific element in the HTML that should use these classes?
Would you like an example of the completed HTML structure with the required Tailwind classes?
Awesome!
Completion rate improved to 3.57
Challenge: Responsive Layouts in Practice
Swipe to show menu
Task
Complete the provided HTML structure by filling in the missing Tailwind CSS classes according to the given layout requirements.
- The container should have padding that changes at different breakpoints;
- Default padding:
p-4; - At
smbreakpoint:p-6; - At
mdbreakpoint:p-8; - At
lgbreakpoint:p-10; - At
xlbreakpoint:p-12.
- Default padding:
- The text should have different colors and sizes at different breakpoints.
- Default text size:
text-base, color:text-gray-700; - At
smbreakpoint:text-lg, color:text-gray-600; - At
mdbreakpoint:text-xl, color:text-gray-500; - At
lgbreakpoint:text-2xl, color:text-gray-400; - At
xlbreakpoint:text-3xl, color:text-gray-300.
- Default text size:
index.html
- For the container, use
p-4 sm:p-6 md:p-8 lg:p-10 xl:p-12; - For the text, use
text-base sm:text-lg md:text-xl lg:text-2xl xl:text-3xl text-gray-700 sm:text-gray-600 md:text-gray-500 lg:text-gray-400 xl:text-gray-300.
index.html
Everything was clear?
Thanks for your feedback!
SectionΒ 5. ChapterΒ 2