
Explore CSS: a complete guide from fundamentals to advanced topics, including text and font properties, backgrounds, layout, animation, grid, flexbox, and the Sass preprocessor.
Discover what css is, why we should learn it, and how a single css file styles html to create a beautiful, responsive site with animation and 2d/3d transformations.
Explore three ways to apply CSS to HTML: inline styles, in-page style tags, and external stylesheets. Learn their usage, benefits, and how to link a dedicated CSS file.
Explore how to apply the CSS color property to change text color and the background color to style backgrounds, using hex, rgb, rgba, and hsl formats in inline styles.
Discover css basic selectors—tag name, class, and id selectors—and descendant selectors with practical examples, guiding you to apply styles using internal or external css files.
Learn to apply the CSS border property by setting width, style, and color, explore shorthand and side-specific borders, and create rounded edges with border-radius.
Learn how to use the css outline property to create outlines around elements, covering outline width, style, color, offset, and shorthand techniques with practical examples.
Discover how CSS padding adds space inside the border using top, right, bottom, and left properties. Explore shorthand padding and how different values shape the space around text.
Explore how css margin creates space outside element borders, learn top, right, bottom, and left properties and their shorthand, use auto to center blocks, and apply margins to separate elements.
Learn how to use CSS height and width with pixel and percentage values, contrast fixed versus dynamic units, and manage overflow by applying minimum and maximum height.
Learn how min-height and max-height properties control container size in CSS, preventing overflow and capping height at 200 and 600 pixels, with practical examples.
Learn how to use CSS min-width and max-width to set lower and upper limits for elements, preventing overflow and enabling resizing from 300px to 500px.
Master css box-sizing to keep element widths stable when adding padding and borders by using border-box, and compare it with content-box behavior through practical examples.
Learn how CSS overflow manages content spilling from fixed height containers using hidden, scroll, auto, and visible values. Explore overflow-x and overflow-y to control horizontal and vertical scrolling.
Learn how to apply CSS border radius to create curved corners and shapes using individual properties and the shorthand, with px and percent values, including circles and ovals.
Learn how to use the CSS box-shadow property to create shadows with horizontal and vertical offsets, blur, spread, color, and inset effects, including multiple shadows.
Learn how the css float property positions elements side by side using left and right values. Explore how float creates space and enables responsive layouts with practical div examples.
Explore how the CSS clear property prevents floats from overlapping content by clearing left, right, or both sides, with practical examples of left, right, and clear both usage.
Master the css cursor property and explore values like default, none, context menu, help, pointer, progress, auto, crosshair, and resize.
Explore CSS clip-path to create circle, ellipse, inset, and polygon shapes by radii and x/y positions, with practical examples of centering and resizing.
Discover how to use the CSS shape outside property with clip path shapes: circle, ellipse, inset, and polygon, to control text flow and reduce whitespace around images.
Learn to prevent text copying with the CSS user-select property, using values auto, none, text, and all, via a live HTML demo.
Learn to use the CSS box-decoration-break property to style multi-line text with slice and clone values, applying borders, border-radius, padding, and line-height across lines, with WebKit prefix for Chrome.
Explore how to create image and gradient borders with the CSS border-image property, covering border-image-source, border-image-slice, border-image-width, border-image-offset, border-image-repeat, and the shorthand.
Learn how the CSS !important hack changes priority by forcing inline, id, class, and tag selectors to apply, with practical examples using color and inline styling.
Explains the CSS object viewbox property to crop and position the visible area of a replaced element, compares it with clip-path, and demonstrates sizing with width, height, and aspect ratio.
Explore CSS font properties, including font size, family, weight, style, variant, and line height, using static and dynamic values like px, percent, em, and rem, plus font shorthand.
Discover how to format text with CSS text properties like text-align, text-align-last, text-transform, text-indent, word-spacing, and letter-spacing, with practical examples for alignment, capitalization, indentation, and spacing.
Explore text decoration properties, including text-decoration-line, color, and style values such as underline, overline, line-through, and solid, dotted, dash, double, wave. Use the shorthand for heading styling with demos.
Explore word wrap and word break in css, learn how break-word and normal help long words, and how break-all breaks by characters, with keep-all as the default.
Learn how the text-shadow property creates horizontal and vertical shadows with a blur radius and color, and see practical examples in code to control shadow position and sharpness.
Explore how the css white-space property governs text wrapping and spaces—covering normal, nowrap, pre, pre-line, and pre-wrap—and observe overflow behavior.
Discover how the CSS text-overflow property, with ellipsis or a custom string, gracefully truncates text while paired with white-space: nowrap and overflow: hidden.
Learn how the CSS writing-mode property rotates text with values like horizontal db, vertical RL, and vertical LR, rotating a paragraph inside a div.
Learn how to use CSS writing-mode and text-orientation to rotate text vertically, and apply values such as upright, mixed, or sideways for Mandarin or Chinese text.
Learn how to split text into multiple columns using the CSS column-count property, and control gaps, rules, width, and column-span with practical examples.
Learn how to use the @font-face rule to embed custom fonts on your web pages, including sourcing fonts, defining a font-family, and applying it with CSS.
Discover how Google fonts reduce server load by serving fonts from Google, embed Montserrat via a link tag, and apply font-family to headings.
Learn how to style lists in CSS using list-style-type, list-style-position, and list-style-image with ul and ol, including circle, square, none, and alpha or roman numbering inside versus outside.
Explore how to customize unordered lists with CSS list-style-type, using disk, square, circle, or a custom string and symbols, and adjust placement with list-style-position in real-time.
Use the CSS quotes property with the q tag to replace quotation marks with symbols like dollar signs, percent signs, or emojis, and see live results in a browser.
Learn how to control text decoration thickness in CSS using the text-decoration-thickness property, and apply it to underline and overline with color and style variations.
Learn how the CSS text underline offset property creates a gap between text and its underline. Explore using text-decoration with color, style, and thickness to customize underlines.
Learn how the current color value propagates from a parent color to child elements, affecting text, borders, and backgrounds, with practical notes on when not to use it with backgrounds.
Explore CSS hyphens and hyphenate-characters: control automatic word breaks with none, manual (soft hyphens), or auto using language, and customize hyphenation symbols with hyphenate characters.
Explore how padding inline and padding block control spacing from the start, end, top, and bottom, with practical examples using left/right, percent values, and vertical writing mode.
Explore how CSS margin inline and margin block replace traditional left/right and top/bottom margins, using start/end semantics, practical examples, and behavior under different writing modes.
Explore how to apply borders using border-inline and border-block in CSS, compare them with border-left/right, and understand how writing mode changes border orientation.
Learn to use the css background-image property, control background-repeat and background-position, and combine multiple images with the shorthand background, including color options.
Learn how the CSS background-attachment property controls whether the background image moves with content or stays fixed, with practical examples of scroll and fixed values.
Master the CSS background-size property by learning auto, length, percentage, cover, and contain. See how to control images on the x and y axes with pixel and percent values.
Explore how the CSS background-origin property controls where a background starts, using padding box, content box, and border box, and see effects with no-repeat and varied background sizes.
Learn how to use the background-clip property to control background color and images across content box, padding box, and border box, including text clipping with transparent text.
Explore CSS color modes, using color names, hexadecimal, rgb(a), and hsl(a) values, and learn how alpha controls transparency across elements.
Learn to create CSS gradient backgrounds with linear and radial gradients, including repeating gradients, color stops, directions, angles, and shape controls (circle and ellipse) using RGB, RGBA, and hex colors.
Master conic gradient in CSS to create color transitions around a center for the background with multiple colors, degrees, and starting angles, with rotation, center position, and repeating gradients.
Apply the CSS opacity property to make elements and their content semi-transparent from 0 to 1, as demonstrated on a div, image, and text in an HTML document.
Master using css background-blend-mode to combine gradient backgrounds with images, including blending two background images, exploring values like screen and overlay, and understand how mixed-blend-mode applies to text and elements.
Explore the CSS display property and how it shapes rendering and layout using values such as none, inline, block, inline-block, and list-item.
Explore the CSS visibility property, including visible, hidden, and collapse, and how it differs from display none through practical examples with a ul and a table.
Create a basic HTML layout with header, menu, content, sidebar, and footer using core CSS properties learned earlier. Use floats and box-sizing to build a simple static, non-responsive page.
Explore CSS position properties, including static, relative, absolute, fixed, and sticky, and learn how left, right, top, and bottom move elements within their containers.
Learn how the CSS inset property positions elements by combining top, right, bottom, and left. See its use with absolute positioning and auto sizing across percentage and pixel values.
Learn how CSS z-index controls the stacking order of positioned elements, using absolute positioning and top/left coordinates to arrange boxes A, B, C, and D.
Master CSS media queries to create responsive designs by targeting screen breakpoints with max-width and min-width, exploring print, screen, and speech types, and adapting layouts for mobile, tablet, and desktop.
Master CSS table styling by applying properties like border-spacing, border-collapse, vertical-align, caption-side, empty-cells, and table-layout to control borders, spacing, alignment, captions, and overall table structure.
Master the CSS resize property to adjust a div’s width and height in horizontal, vertical, or both directions. See how overflow enables resizing and how resize none disables it.
Explore how the CSS object-fit property resizes images or videos to fit containers while preserving aspect ratio using values like fill, contain, cover, none, and scale down.
Explore how display: flow-root fixes float containment by making a parent establish a new block formatting context, eliminating overflow and clear fix workarounds and stabilizing layout.
Explore how to use the prefers-color-scheme media query to tailor CSS for light and dark modes, adapting background and text colors based on the user's system color scheme.
Discover how to use the CSS display-mode media query to switch styles for browser, full screen, and minimal UI, applying different colors and layout changes.
Learn how to use the CSS orientation media rule to adapt a website for portrait and landscape modes, with practical examples that switch background colors based on orientation.
Master CSS print media by designing for print and screen, using link tag with print.css, @media print, and hiding header, nav, and sidebar to print only the content.
Explore the CSS @page at-rule for print media, setting margins and size, adding page breaks, and targeting first, left, and right pages with pseudo-classes.
CSS Container Query Tutorial
Learn how to control print layouts using CSS break before, break after, and break inside, with page and avoid values to manage page breaks for headings and tables.
Learn CSS measurement units, from absolute fixed pixels to relative em and rem, plus viewport units (vw, vh, vmin, vmax). See how parent and root font sizes drive sizing.
Explore CSS viewport units, including vw, vh, vmax, and vmin, and learn how they relate to the browser window, not the parent element, with practical examples and differences from percentages.
Explore CSS variables and the root pseudo-class to create global and local scopes, reuse colors across header, navigation, and footer, and apply fonts via variables.
Explore how the CSS calc() function performs arithmetic to adjust widths, paddings, background positions, and centering, including responsive layouts with 100vh minus header and footer heights.
Min() function chooses the smallest value among options like 50% and 500px to create dynamic widths without media queries, and can be applied to width, margin, padding, and numeric properties.
Learn how the CSS max() function picks the greater value to set dynamic widths, using min() and calc with vw, percentages, and pixels for responsive padding.
Explore the clamp function to cap sizes with a minimum, maximum, and a preferred value like 50% of the viewport for width and font size within 350px to 500px.
Learn how the CSS attr() function prints element attributes using the content property, with class and id attributes, hover effects, and after pseudo-class demos in a live example.
Explore advanced css selectors, from simple type, class, id, universal selectors to combinator selectors including descendant, direct child, adjacent and general sibling selectors, with practical examples.
learn to use css attribute selectors to target elements by attributes and values, with examples on img, a, and input tags.
Explore CSS pseudo classes, including first-child, last-child, nth-child, nth-last-child, nth-of-type, and only-child, with practical examples in HTML lists and paragraphs.
Master CSS pseudo-classes such as :first-of-type, :last-of-type, :empty, :not, :lang, and link states (:link, :hover, :visited, :active) to style specific elements like li, span, and a in real HTML.
Explore CSS pseudo-classes such as target, focus, enable, disable, required, optional, in-range, and out-of-range, with id-based linking, anchors, and adjacent selectors for form and content highlighting.
Explore the remaining CSS pseudo-classes including read-only, read-write, valid, invalid, default and root; see practical demonstrations on input fields, checkboxes, radios, and selects with borders and colors.
Explore the CSS fullscreen pseudo class, toggle a div to fullscreen with JavaScript, and apply fullscreen styles (background, font size) and targeted changes (paragraph color), including the not fullscreen variant.
Learn how to use the focus-within pseudo class to style a parent element when any child input inside a form receives focus, changing the background color accordingly.
Explore how the is() pseudo class targets multiple elements across containers with a single selector, reducing CSS size and boosting page speed for headings, paragraphs, and hover.
Learn how CSS has pseudo class selects a parent element based on its children, with examples like h1:has(span) and p:has(b), and apply underline via direct and class-based selectors.
Explore CSS pseudo elements in depth, focusing on first letter, first line, selection, and placeholder selectors, with practical examples and how to apply them in HTML.
Explore the CSS before and after pseudo elements and the content property for inserting text, such as hello and world, with hover and display styling across tags except image.
Explore how to customize list markers with the marker pseudo-element using the ::marker selector in css to color markers separately from text, with practical examples for ul and li.
Learn to style the file input button using the file-selector-button pseudo selector, customizing background, border, padding, and text color with practical HTML and CSS examples.
Master advanced css nesting to reduce repetition and organize code. Learn how to nest nav, ul, li, and anchor selectors using curly braces and ampersand for hover, improving maintainability.
Master css counters by learning counter-reset and counter-increment, using before and content to auto-number sections and subsections, with numeric, alphabetic, and roman styles.
Learn to use caret-color to change the cursor in input fields and text areas. Apply hex and rgba formats; auto yields the default black, and transparent hides the caret.
Learn how to use the CSS @import rule to include one CSS file in another, control media types like print and screen, and apply styles across a page.
Learn how to use icon fonts like Font Awesome in web pages, linking fonts, choosing solid versus other styles, and applying icons via HTML, CSS, and CDN for faster loading.
Explore CSS scrollbar styling using WebKit prefix and pseudo elements for scrollbar, thumb, track, and corner, then apply width, colors, gradients, borders, and shadows in Chrome, Safari, and Opera.
Explore how to implement smooth scrolling with the CSS scroll-behavior property, applying it to the HTML element or specific containers to create seamless transitions between internal page sections.
Explore CSS scrollbar styling by learning scrollbar color, width, and gutter, with practical examples across Chrome, Safari, and Firefox and hands-on demonstrations.
Explore the css @supports rule for feature detection and conditional styling across browsers, using display grid, display flex, not, or, and operators, with WebKit prefixes.
Learn how the placeholder-shown pseudo-class styles text inputs and textareas by showing a border when the placeholder is active, and apply type selectors to target only text fields.
Learn how to use the CSS accent-color property to customize checkbox and radio button colors, changing the default blue to red, green, purple, or yellow through practical examples.
Explore how to use the aspect-ratio property to create perfect squares and responsive images, experiment with 1:1, 1:2, and 2:1 ratios, and avoid using both width and height properties.
Explore the CSS initial-letter property, using ::first-letter to style the first character, adjust font size, line height, margins, padding, color, and background for stylish text.
Explore the CSS filter property to apply effects such as none, blur, brightness, contrast, drop shadow, grayscale, and URL for SVG images, with a live VS Code and browser demo.
Explore the CSS filter property in part 2, applying hue-rotate, invert, opacity, saturate, sepia, and url-based effects, while practicing with blur and brightness adjustments.
Explore how to apply the CSS backdrop filter to an inner div over a background image, using blur, brightness, contrast, hue rotate, invert, sepia, saturate, and a hover transition.
Learn how CSS transitions create smooth animations using the transition property, duration, delay, and timing function, with hover examples for width, height, and color.
Explore how the CSS transition timing function controls smoothness, comparing values like linear, ease, ease in, ease out, and cubic bezier, with practical examples and steps.
Learn how the CSS transition delay property controls when a transition starts, with practical examples using hover, load, and a shorthand transition syntax specifying property, duration, timing function, and delay.
Explore css transform for 2d transformation, mastering rotate, translate, translate x, translate y, default none, and the basics of skew, scale, and matrix with practical examples.
Learn how to use CSS transform scale to resize elements in two dimensions, using scale, scaleX, and scaleY to adjust width and height with examples like 2x, 3x, and 0.5.
Explore CSS 2D transformation with transform and skew variants, tilt elements along x and y axes, and use transform-origin with percentage or pixel values for rotation points and animation prep.
Explore the CSS 2D transform matrix, a six-parameter function that combines rotate, scale, translate, and skew to transform elements. See how to apply it with hover effects and transitions.
Master css 3d transformation by learning rotate x, rotate y, rotate z, and rotate 3d. Explore perspective and transform origin through practical demos.
Learn CSS transform 3D techniques using translate x, translate y, translate z, translate 3D, and rotate x/y, with the transform property to create dynamic 3D effects.
Learn to apply CSS 3D transformations with scale x, scale y, scale z, and scale 3D, and adjust transform origin to control the 3D scaling effect.
Learn how CSS perspective creates a 3d look by applying perspective on the container and rotating a div on hover along the x axis, with perspective-origin guiding the viewpoint.
Explore how the transform-style property works with transform to preserve 3d position and enable 3d effects on nested elements, using perspective and rotate demonstrations.
Discover how the CSS backface-visibility property works with transform to hide or reveal the back face during 3D rotation, using visible and hidden values.
Learn how to animate any HTML element with CSS by building a div that morphs from a rectangle to a circle using keyframes, animation properties, and the animation shorthand.
Master CSS animations by using percentage keyframes 0%, 50%, and 100%, replacing from and to, and applying shorthand animation properties with delay and timing functions like linear and cubic-bezier.
Explore css animation fill mode, its four values none, forwards, backwards, and both, and see how they affect element styles before and after animation through practical examples.
Learn how the CSS animation-play-state property controls animation flow by pausing and running, using hover to pause and resume, with practical examples.
Design a CSS animated link button that slides on hover and changes text color, using an anchor with class btn, inline-block layout, a border, and an after pseudo-element with transitions.
Create a pure CSS3 3D flip hover button using HTML and CSS, featuring front, center, and back spans, perspective, transforms, and a gradient center span.
Learn to build an editable animated text effect with CSS glow and a mirror reflection, using contenteditable, CSS animation, and box-reflect for a creative web design.
Design an animated eyes follow mouse cursor project with CSS and JavaScript, using flexbox layout and grid concepts, hover mouth changes, and smooth transitions.
Create a 3D wave circle loader with CSS animation, using 15 spans, perspective, and translateZ to form a wave while staggered delays produce the motion.
Learn to build a CSS 3D layered image hover effect by stacking images in a container and applying transform, opacity, and transition on hover to create a 3D depth.
Create a 3d rotation animation using css transforms and perspective. Build a box with div and span elements, apply rotateX and rotateY, and run a 5s infinite animation.
Create an animated rain cloud project using css with variables, building cloud shapes via pseudo elements and rain that falls and disappears, demonstrated in a vscode and live server setup.
Create an animated rain effect under a cloud by duplicating spans with the rain class, using CSS variables for random durations and a keyframed translateY animation.
Create a css loading text animation using a data-text attribute, a pseudo-element, and a border-right stroke to reveal the text with a six-second linear infinite animation.
Create an infinite driving animation by moving the background from bottom left to bottom right while the car and motorbike stay fixed, using driving keyframes with a ten second duration.
Explore how CSS grid creates a two-dimensional layout using a grid container with display: grid, replacing float layouts and boosting code readability, without relying on frameworks.
Learn to build grid layouts in CSS with grid template columns and rows, using pixels, percentages, auto and fr units, plus grid gaps and repeat for flexible designs.
learn to control spacing in css grid with grid row gap, grid column gap, and the grid gap shorthand, using practical pixel values like 10px, 20px, and 30px.
Learn to position CSS grid items inside a grid container using row and column start/end properties and grid area shorthand, including item reordering and overlap behavior.
Learn how to span grid items using column and row spans in CSS grid, including grid lines, shorthand properties, and z-index to control overlap.
Learn to name CSS grid lines and use those names in grid row and column properties to create flexible layouts, including header, menu, and sidebar sections.
Discover how to name and position grid items with grid area and grid template areas in CSS grid, implementing header, menu, boxes, sidebar, and footer across a three-column layout.
Explore how the CSS grid minmax function controls row and column sizing, using max-content and min-content to dynamically adjust height and width for responsive layouts.
Demonstrate implicit and explicit grid by defining two columns with repeat, three rows of 100px, and a 20px gap, then control implicit behavior with grid auto rows, columns, and flow.
Learn vertical and horizontal alignment in CSS grid by using align items, justify items, place items, and align self, justify self, place self, with practical row and column spanning.
Master CSS grid track alignment by using justify-content and align-content to horizontally and vertically align grid items, with practical demos of space between, space around, and dense flow.
Explore how CSS grid auto-fill and auto-fit control column creation with minmax and repeat, enabling responsive layouts and adaptive item placement.
Explore fit-content in CSS grid to size columns with max widths like 200px and 400px, and use minmax with min-content to manage grid cell height.
Discover how the CSS grid order property repositions grid items to specific positions, including moving the first item to the sixth place and understanding the default value.
Convert a grid item into a grid container to create nested grids with display: grid, grid template columns, and grid gap, visualizing grid lines and overlays in both grids.
Learn how to create overlapping grid items in CSS grid, control their stack order with z-index, and position and align them using grid column/row properties and alignment rules.
In this comprehensive CSS course, you will delve into the world of Cascading Style Sheets (CSS) and master not only the fundamentals but also advanced techniques including animation, layout with Flexbox and Grid, and the use of Sass for efficient styling. Whether you're a beginner looking to start from scratch or an experienced developer aiming to refine your CSS skills, this course has something valuable to offer.
Course Outline:
CSS Fundamentals: Explore CSS basic properties such as padding, margin, height, width, cursor, clip-path, shape outside, box shadow, overflow, and more.
CSS Text and Font Properties: Dive into font-family, font-size, font-weight, font-style, text-align, text-decoration, text-transform, line-height, and other text-related properties.
CSS Background Properties: Learn about background-color, background-image, background-repeat, background-position, background-size, background-attachment, and related concepts.
CSS Layout Techniques: Understand display options, visibility, positioning, z-index, media queries for responsiveness, table styling, object-fit, resize, and advanced layout techniques.
Advanced CSS Units, Functions, and Variables: Discover CSS units like em, rem, vh, vw, vmax, vmin, CSS variables, functions, and their practical applications.
CSS Advanced Selectors: Master combinator selectors, attribute selectors, pseudo-classes, CSS pseudo-elements, and their uses in creating dynamic styles.
CSS Animation: Explore CSS filter effects, transitions, 2D and 3D transforms, perspective, transform-style, animations, and work on hands-on projects to apply these concepts.
CSS Grid: Gain a thorough understanding of CSS Grid properties and create responsive grid-based layouts effortlessly.
CSS Flexbox: Harness the power of CSS Flexbox to design complex and responsive layouts with ease, making your designs adaptable to various screen sizes and devices.
Modern CSS Preprocessor - Sass: Integrate Sass (Syntactically Awesome Style Sheets) into your workflow to enhance CSS with features like variables, nesting, mixins, and functions, streamlining your styling process and making your code more maintainable and scalable.
By the end of this course, you will have a strong command of CSS, enabling you to create stunning and responsive web designs while leveraging the latest techniques and tools in the field.