Skip to content

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽจ CSS โ€” From Fundamentals to Advanced

A structured CSS learning journey covering core styling, layouts, responsive design, positioning, Flexbox, transforms, animations, and hands-on practice.


HTML5 CSS3 Flexbox Responsive Animations GitHub


๐Ÿ“Š Quick Repository Stats

๐Ÿ“ Levels ๐Ÿ“ Total Files ๐Ÿงฉ Practice Sets ๐Ÿš€ Capstone Projects
4 52+ 6 1

๐Ÿงญ Table of Contents


๐Ÿ“– About This Repository

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.

๐ŸŒŸ Key Highlights

  • ๐ŸŸข 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.

๐Ÿ—บ๏ธ CSS Learning Roadmap

๐ŸŸข 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

๐Ÿ“š Level 1 โ€” CSS Fundamentals

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

๐ŸŽจ Level 2 โ€” Backgrounds & Positioning

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

๐Ÿ“ Level 3 โ€” Layout & Responsive Design

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

โœจ Level 4 โ€” Transforms & Animations

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

๐Ÿงฉ Practice Sets

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

๐Ÿš€ Project Showcase

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/

๐Ÿ› ๏ธ Features Implemented

  • ๐ŸŽฏ 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

๐Ÿ“ Repository Structure

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

โ–ถ๏ธ How to Run

Because this repository uses native HTML5 and CSS3, no build steps, Node packages, or external dependencies are required.

Option 1 โ€” Direct Browser (Simplest)

  1. Navigate to any folder (e.g., Level-1/).
  2. Double-click any .html file (e.g., display.html).
  3. The page will immediately open in your default browser.

Option 2 โ€” VS Code Live Server (Recommended)

  1. Open this repository folder in Visual Studio Code.
  2. Install the Live Server extension (ritwickdey.LiveServer) if not already installed.
  3. Right-click any .html file and select "Open with Live Server".
  4. Enjoy hot-reloading as you edit and experiment with CSS properties!

Option 3 โ€” Python Local Server

Run a local HTTP web server using Python from your terminal:

python3 -m http.server 8000

Then navigate to http://localhost:8000 in your web browser.


๐Ÿง  Learning Approach

This repository adheres to a practical, iteration-focused learning framework:

Learn Concept  โ”€โ”€>  Write Code  โ”€โ”€>  Practice Set  โ”€โ”€>  Experiment  โ”€โ”€>  Build Project
  1. ๐Ÿ“š Learn: Study fundamental property specifications and mechanics.
  2. ๐Ÿ’ป Code: Hands-on implementation of standalone concepts.
  3. ๐Ÿงฉ Practice: Solve targeted problem sets in Practice Sets 3โ€“8.
  4. ๐Ÿ”ฌ Experiment: Modify values, test edge cases, and inspect layout behavior in browser DevTools.
  5. ๐Ÿš€ Build: Synthesize knowledge by creating complete project UIs.

๐Ÿ“ˆ Skills Covered

  • 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

๐Ÿ”ฎ Future Roadmap

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

๐ŸŽฏ Learning Progression

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

๐Ÿ’ก Why This Repository Exists

"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.


๐Ÿง‘โ€๐Ÿ’ป Author

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! ๐Ÿš€

About

My CSS learning journey from fundamentals to advanced concepts, featuring hands-on practice, responsive layouts, animations, and real-world UI projects built with pure CSS.

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Contributors

Languages