A structured CSS learning journey covering core styling, layouts, responsive design, positioning, Flexbox, transforms, animations, and hands-on practice.
| ๐ Levels | ๐ Total Files | ๐งฉ Practice Sets | ๐ Capstone Projects |
|---|---|---|---|
4 |
52+ |
6 |
1 |
- ๐ About This Repository
- ๐บ๏ธ CSS Learning Roadmap
- ๐ Level 1 โ CSS Fundamentals
- ๐จ Level 2 โ Backgrounds & Positioning
- ๐ Level 3 โ Layout & Responsive Design
- โจ Level 4 โ Transforms & Animations
- ๐งฉ Practice Sets
- ๐ Project Showcase
- ๐ Repository Structure
โถ๏ธ How to Run- ๐ง Learning Approach
- ๐ Skills Covered
- ๐ฎ Future Roadmap
- ๐ฏ Learning Progression
- ๐ก Why This Repository Exists
- ๐งโ๐ป Author
This repository documents a practical, hands-on journey through Cascading Style Sheets (CSS) โ progressing systematically from core styling fundamentals to modern responsive layouts and interactive animations.
- ๐ข Progressive Difficulty: Step-by-step curriculum starting with element displays up to keyframe animations.
- ๐งฉ Practice-Driven: Every core concept is accompanied by dedicated practice sets (
Practice Sets 3โ8). - ๐ฑ Modern Layout Techniques: In-depth exploration of Flexbox, Media Queries, and Mobile-First responsive design.
- ๐ Real-World Capstone: Hands-on integration of all learned concepts into a complete CSS project.
๐ข LEVEL 1 โ CSS Fundamentals
โโโ Display โข Padding โข Opacity โข Core Selectors
โ
๐ก LEVEL 2 โ Backgrounds & Positioning
โโโ Background Gradients โข Stacking Context (z-index) โข Absolute/Relative Positioning
โ
๐ต LEVEL 3 โ Layout & Responsive Design
โโโ Flexbox Layouts โข Breakpoints โข Media Queries โข Flexible Containers
โ
๐ฃ LEVEL 4 โ Transforms & Animations
โโโ 2D/3D Transforms โข Translate โข Scale โข Keyframe Animations
โ
๐ CAPSTONE PROJECT
โโโ Complete CSS Web Project combining all concepts
Location:
Level-1/
The foundation of the learning journey. Covers core CSS syntax, display behaviors, element spacing, and opacity.
| ๐ Topic | ๐ Location | ๐ฏ Focus |
|---|---|---|
| Alpha / Opacity | Level-1/alpha.html |
Transparency, RGBA color values, and layer visibility |
| Display Property | Level-1/display.html |
Block vs. Inline vs. Inline-block element layouts |
| Padding & Spacing | Level-1/padding.html |
Internal box-model spacing and padding boundaries |
| Basic Styling | Level-1/style.css |
Core CSS properties, colors, fonts, and selectors |
| Practice Set 3 | Level-1/practics set -3/ |
Hands-on exercises for selectors and basic styling |
| Practice Set 4 | Level-1/practics set -4/ |
Intermediate layout and display practice exercises |
Location:
Level-2/
Building upon basic styling by introducing visual enhancements, background control, and precision element positioning.
| ๐ Topic | ๐ Location | ๐ฏ Focus |
|---|---|---|
| Backgrounds | Level-2/background.html |
Background colors, images, gradients, and sizing |
| Positioning | Level-2/position.html |
Static, Relative, Absolute, and Fixed positioning |
| z-index | Level-2/z-index.html |
Stacking context and 3D layer hierarchy management |
| Practice Set 5 | Level-2/practics set -5/ |
Applied positioning and background layout challenges |
Location:
Level-3/
Modern frontend layout techniques enabling web pages to fluidly adapt across desktop, tablet, and mobile displays.
| ๐ Topic | ๐ Location | ๐ฏ Focus |
|---|---|---|
| Flexbox Layout | Level-3/flexbox.html |
1D flexible containers, main/cross axes, alignment |
| Media Queries | Level-3/media-query.html |
Screen breakpoints and conditional responsive CSS |
| Responsive Design | Level-3/responsive.html |
Fluid typography, relative units (%, rem, vw) |
| Practice Set 6 | Level-3/practics set -6/ |
Responsive layout building exercises |
| Practice Set 7 | Level-3/practics set -7/ |
Complex Flexbox layout challenges |
Location:
Level-4/
Adding dynamic motion, interactive hover effects, keyframes, and transformations to bring user interfaces to life.
Transform โโ> Translate โโ> Scale โโ> Keyframe Animation โโ> Practice Set 8
| ๐ Topic | ๐ Location | ๐ฏ Focus |
|---|---|---|
| CSS Transforms | Level-4/transform.html |
2D/3D matrix, rotation, and skew transformations |
| Translate | Level-4/translate.html |
Smooth element relocation along X, Y, and Z axes |
| Scale | Level-4/scale.html |
Interactive element scaling, zooming, and transitions |
| Keyframe Animations | Level-4/animation.html |
@keyframes, animation timing, delays, and iteration |
| Practice Set 8 | Level-4/practics set -8/ |
Creative animation and transformation challenges |
Dedicated exercise modules designed to reinforce theoretical learning with real code practice:
| ๐งฉ Practice Set | ๐ Repository Path | ๐ฏ Core Learning Objective |
|---|---|---|
| Practice Set 3 | Level-1/practics set -3/ |
Core CSS properties, text formatting, basic color rules |
| Practice Set 4 | Level-1/practics set -4/ |
Box model manipulation, padding, margin, display block/inline |
| Practice Set 5 | Level-2/practics set -5/ |
Card positioning, overlays, z-index layering, background images |
| Practice Set 6 | Level-3/practics set -6/ |
Responsive media query breakpoints & adaptive navigation |
| Practice Set 7 | Level-3/practics set -7/ |
Flexbox alignment, direction, wrap, and space distribution |
| Practice Set 8 | Level-4/practics set -8/ |
Hover animations, scale transitions, keyframe movement |
Location:
project/
The capstone project combines concepts from all four levels into a functional, styled web page.
| ๐ Project | ๐ ๏ธ Tech Stack | ๐ Directory Link |
|---|---|---|
| CSS Practice Project | HTML5 + Custom CSS3 | project/ |
- ๐ฏ Semantic HTML5 markup structure (
index.html) - ๐จ Custom CSS Design using modular styling rules (
style.css) - ๐ฆ Flexbox Layout Architecture for header, main content, and footer
- ๐ฑ Responsive Design across mobile, tablet, and desktop viewports
- โจ Interactive States featuring smooth CSS hover and transition effects
CSS/
โโโ ๐ข Level-1/ # CSS Fundamentals
โ โโโ ๐ alpha.html
โ โโโ ๐ display.html
โ โโโ ๐ padding.html
โ โโโ ๐จ style.css
โ โโโ ๐ practics set -3/
โ โโโ ๐ practics set -4/
โ
โโโ ๐ก Level-2/ # Backgrounds & Positioning
โ โโโ ๐ background.html
โ โโโ ๐ position.html
โ โโโ ๐ z-index.html
โ โโโ ๐จ style.css
โ โโโ ๐ practics set -5/
โ
โโโ ๐ต Level-3/ # Layout & Responsive Design
โ โโโ ๐ flexbox.html
โ โโโ ๐ media-query.html
โ โโโ ๐ responsive.html
โ โโโ ๐จ style.css
โ โโโ ๐ practics set -6/
โ โโโ ๐ practics set -7/
โ
โโโ ๐ฃ Level-4/ # Transforms & Animations
โ โโโ ๐ animation.html
โ โโโ ๐ scale.html
โ โโโ ๐ transform.html
โ โโโ ๐ translate.html
โ โโโ ๐จ style.css
โ โโโ ๐ practics set -8/
โ
โโโ ๐ project/ # Capstone Project
โ โโโ ๐ index.html
โ โโโ ๐จ style.css
โ
โโโ ๐ README.md # Documentation
Because this repository uses native HTML5 and CSS3, no build steps, Node packages, or external dependencies are required.
- Navigate to any folder (e.g.,
Level-1/). - Double-click any
.htmlfile (e.g.,display.html). - The page will immediately open in your default browser.
- Open this repository folder in Visual Studio Code.
- Install the Live Server extension (
ritwickdey.LiveServer) if not already installed. - Right-click any
.htmlfile and select "Open with Live Server". - Enjoy hot-reloading as you edit and experiment with CSS properties!
Run a local HTTP web server using Python from your terminal:
python3 -m http.server 8000Then navigate to http://localhost:8000 in your web browser.
This repository adheres to a practical, iteration-focused learning framework:
Learn Concept โโ> Write Code โโ> Practice Set โโ> Experiment โโ> Build Project
- ๐ Learn: Study fundamental property specifications and mechanics.
- ๐ป Code: Hands-on implementation of standalone concepts.
- ๐งฉ Practice: Solve targeted problem sets in
Practice Sets 3โ8. - ๐ฌ Experiment: Modify values, test edge cases, and inspect layout behavior in browser DevTools.
- ๐ Build: Synthesize knowledge by creating complete project UIs.
- CSS Fundamentals: Selectors, specificity, box model, cascade rules
- Display Types: Block, inline, inline-block, display none
- Spacing & Sizing: Margins, padding, width/height, box-sizing
- Colors & Transparency: Hex, RGB/RGBA, alpha channel opacity
- Background Styling: Colors, background images, gradients, cover/contain
- Element Positioning: Static, relative, absolute, fixed, sticky
- Layering & Depth:
z-index, stacking contexts, overlay creation - Flexbox Layout: Containers, flex directions, justify-content, align-items, flex-wrap
- Responsive Design: Viewport meta tags, media query breakpoints, fluid dimensions
- CSS Transforms: 2D/3D translate, scale, rotate, skew
- CSS Animations: Keyframe definitions, animation-duration, timing functions
- Practical Problem Solving: Solved 6 dedicated practice problem sets
- Project Integration: Multi-component webpage styling and architecture
Note: The following topics are planned for future learning expansion and advanced CSS study.
- โฌ CSS Grid Layout: 2D grid systems, grid template areas, implicit/explicit grids
- โฌ CSS Custom Properties: Native CSS variables (
var(--primary-color)) & dynamic themes - โฌ Advanced Selectors: Pseudo-classes (
:has(),:is(),:where(),:nth-child()) - โฌ Modern CSS Functions: Fluid sizing with
clamp(),min(),max(), and math operations - โฌ Web Accessibility (a11y): Focus states, high-contrast modes, reduced-motion queries
- โฌ Modern CSS Architecture: Modular methodologies (BEM, ITCSS, Utility-First)
- โฌ Advanced UI Animations: View transitions, scroll-driven animations, 3D CSS transforms
CSS Basics
โ
Spacing & Display
โ
Backgrounds & Opacity
โ
Positioning & z-index
โ
Flexbox Architecture
โ
Responsive Design & Media Queries
โ
2D/3D Transforms
โ
Keyframe Animations
โ
Practice Sets (3โ8)
โ
Capstone CSS Project
"The best way to master CSS is to write code, break layouts, fix specificity bugs, and build real projects step by step."
This repository documents a dedicated journey of mastering CSS from first principles. By combining isolated topic files with practical practice sets and a real project, it serves as a personal knowledge base and structured reference guide for modern frontend styling.
Built and maintained with passion as part of a continuous frontend development learning journey.
โญ If you find this repository helpful for your learning, consider giving it a star! โญ
Happy Coding! ๐