CSS Assignment Set
CSS Assignment Set
Box Model
Assignment 1: Product Card Layout
Create a responsive product showcase page with cards. Requirements:
- Design at least 5 product cards displayed in a grid
- Each card should include: image, title, description, price, and button
- Apply proper padding, margin, and borders to each card
- Use box-sizing to ensure consistent sizing
- Implement hover effects that modify border, shadow, or scale
- Cards should adjust their layout at different screen sizes
Colors
Assignment 1: Color Theme Builder
Create a webpage that showcases a cohesive color scheme.
Requirements:
- Implement a 5-color palette (primary, secondary, accent, background,
text)
- Use at least 3 different color formats (hex, rgb/rgba, hsl/hsla)
- Create sections demonstrating different color combinations
- Include a gradient section with at least 2 different gradients
- Implement color transitions on interactive elements
- Use opacity/transparency in at least 2 components
Typography
Assignment 1: Typography Hierarchy
Create a webpage that demonstrates typographic hierarchy.
Requirements:
- Include all heading levels (h1-h6) with appropriate styling
- Design paragraphs with proper line height, spacing, and font size
- Implement at least 2 different font families (one serif, one sans-serif)
- Create styled blockquotes and citations
- Include a section with lists (ordered, unordered, definition)
- Design a section with highlighted text, code blocks, and keyboard
input
- Implement proper text alignment for different content types
Units
Assignment 1: Flexible Layout System
Create a flexible webpage layout using relative units. Requirements:
- Design a page with header, navigation, content area, and footer
- Use em/rem units for all text sizing
- Implement percentage-based widths for layout components
- Create at least one element sized with viewport units
- Design a component that uses the calc() function
- Ensure the layout works smoothly across different screen sizes
- Include a section with nested elements that inherit sizing