CSS Full Course: From Basics to Mastery
MODULE 1: Getting Started with CSS
- CSS is used to style HTML elements visually (colors, layout, fonts, etc.).
- Types of CSS: Inline, Internal, External.
- Syntax: selector { property: value; }
- Example: p { color: blue; font-size: 16px; }
MODULE 2: CSS Selectors
- Element: p, h1, div
- Class: .classname
- ID: #idname
- Attribute: input[type='text']
- Pseudo-classes: :hover, :first-child
- Pseudo-elements: ::before, ::after
MODULE 3: Colors, Units, and Typography
- Colors: Named, HEX, RGB, HSL.
- Units: px (pixels), %, em (relative to parent), rem (relative to root), vw/vh.
- Typography: font-family, font-size, font-weight, text-align, line-height.
MODULE 4: Box Model and Spacing
- The Box Model includes: Content, Padding, Border, Margin.
- Use 'box-sizing: border-box;' for easier layout management.
- Visualize using browser DevTools.
MODULE 5: Display and Positioning
- Display: block, inline, inline-block, none.
- Position: static, relative, absolute, fixed, sticky.
- z-index determines stack order of elements.
MODULE 6: Flexbox Layout
- Use 'display: flex;' on parent.
- Align children using: justify-content, align-items.
- Flex-direction: row, column.
- Flexible sizing: flex-grow, flex-shrink, flex-basis.
MODULE 7: CSS Grid Layout
- Use 'display: grid;' on container.
- Define rows/columns using grid-template-rows/columns.
- Responsive layouts with auto-fit and minmax.
- Grid-area to place items precisely.
MODULE 8: Responsive Web Design
- Use the viewport meta tag in HTML.
- Media Queries adapt styles based on screen size.
- Example: @media (max-width: 768px) { body { font-size: 14px; } }
MODULE 9: Backgrounds, Borders, Effects
- background-color, background-image, background-size.
- Borders: border-style, border-radius.
- box-shadow and text-shadow for effects.
MODULE 10: Transitions and Animations
- transition: property duration easing.
- Use @keyframes for custom animations.
- animation: name duration timing-function.
MODULE 11: Advanced CSS
- CSS Variables: --main-color: #333;
- Use var(--main-color) in styles.
- Functions: calc(), min(), max(), clamp().
- Selectors: :not(), :is(), :has()
MODULE 12: Frameworks and Tools
- Preprocessors: SASS, SCSS add features to CSS.
- Frameworks: Bootstrap (component-based), Tailwind (utility-first).
MODULE 13: Projects to Practice
- Portfolio Website
- Landing Page
- Blog Layout
- Responsive Product Page
- CSS Art and Icons
MODULE 14: DevTools and Debugging
- Use Chrome DevTools (F12) to inspect, test and debug CSS.
- Visualize box model, check computed styles and layout shifts.