
Masterclass introduces responsive and adaptive web design using flexbox and grid, guiding you through tens of layouts and three real-world projects to build practical, cutting-edge skills.
Master HTML basics, CSS essentials, Flexbox and CSS Grid in a three-path masterclass that builds real-world portfolio sites, with responsive and adaptive layouts for desktop, tablet, and mobile.
Maximize this masterclass by following the beginner, intermediate, or advanced paths, including flexbox and grid exercises, and building a responsive portfolio and a mobile-first adaptive site.
Explore three real-world projects in this CSS layouts masterclass: a responsive foxhole portfolio, an event grids site, and an adaptive mobile-first design. Master scalable code and hover fallbacks.
Master responsive-adaptive websites by building ten flexbox and ten grid layouts through a problem-based approach, covering blog posts, space-style navigation, personal info card, signing page, responsive gallery, and product cards.
Explore ten flexbox layouts and ten css grid layouts with solutions, practicing responsive-adaptive web design by recreating checkout pages, headers with navigation, product carousels, and portfolios.
Learn how HTML provides content and CSS adds style as the building blocks of every website, illustrated by a real-world Netflix example, browser inspect tools, and JavaScript.
Begin your CSS layouts masterclass by exploring flexbox layouts, project previews, and upcoming exercises. Feel relaxed as you start this journey, with a 30-day money-back guarantee.
Explore the beginner learning path to master the basics of HTML and CSS, from setup and essential HTML elements and semantics to CSS styling, layout creation, and responsive-adaptive website fundamentals.
Set up development tools by installing Google Chrome or Firefox, then download Visual Studio Code from code.visualstudio.com for Windows, macOS, or Linux; VS Code is free and extensions empower beginners.
Open a folder in Vsco, name it set up_resource_files, and open with code. Learn the interface, including the file explorer, search, source control, debugging, and extensions.
Create html and css files in VS Code by naming them with proper extensions like test.html and test.css. Mention that web development uses HTML, CSS, and JavaScript.
Install and configure VS Code extensions to view results and format code professionally with Prettier. Use the live server extension to see changes in the browser and streamline HTML/CSS workflows.
Open an html file in a browser with live server and see live reload on port 5500, reflecting edits instantly. Learn the basic html boilerplate and the essential document structure.
Explore HTML essentials for building content, including links and images, and learn what elements to use for responsive and adaptive pages. Apply the basics by building a gigantic web page.
Create your first HTML page with the boilerplate and body content that appears in the browser after saving, starting with hello world and learning that HTML means hypertext markup language.
Learn to create and structure content with semantic HTML such as headings, paragraphs, and lists, and use inspect tools to style with CSS, override defaults, and employ Emmet.
Learn how anchor elements create hyperlinks with href, the hypertext reference, and how to open links in a new tab using target _blank to keep users on your site.
Insert images on a web page with the img tag, using src and alt attributes for accessibility. Learn to reference local and online images and organize assets in one folder.
Explore how to build forms in HTML, using input types such as text, email, password, checkbox, radio, and submit; understand form structure, action attributes, placeholders, and basic validation.
Explore semantic elements in HTML5, using header, main, aside, article, and footer to clearly indicate structure. Avoid non-semantic div (def) containers and learn the container and child relationships.
Learn how block level and inline level elements control vertical stacking and horizontal layout with CSS, using sections, divs, spans, and anchors.
Distinguish container (parent) and contained (child) elements, noting any element can be a container or content. For example, main contains section, demonstrating container versus contained by indentation.
Code a full photography portfolio webpage from scratch, including header, hero, services, works, gallery, blog, contact, and newsletter sections, using Font Awesome icons and responsive design concepts.
Explore CSS essentials from the ground up, linking CSV to HTML, and master colors, backgrounds, cascade specificity, classes, pseudo-classes, and pseudo-elements through practical lessons and two hands-on exercises.
Explore cascading style sheets and how to link CSS to HTML using inline, internal, and external methods, including selectors, declaration blocks, and properties.
Link and manage external CSS files to HTML, explain internal and inline CSS, and apply styles by selecting elements, opening declaration blocks, and using VS Code IntelliSense for background-color.
Apply a basic font styling by selecting the body element and setting font-family with fallbacks such as Arial, Helvetica, and sans-serif, while exploring Google fonts.
Learn how css classes select and style html elements, enabling shared styles for multiple anchors and using dot notation to target a class on a nav list.
Apply borders to elements using class selectors with dash-separated names, and learn the border shorthand with width, style, and color to create solid, dotted, or dashed borders.
Explore how to implement background images in css, including background image, size, repeat, and overlay techniques, to create readable hero sections.
Explore CSS simple selectors by applying element/name selectors, class selections, and ID selections, learn that IDs are unique and JavaScript-friendly, and practice selecting by dot and hash with examples.
Explore css font properties by selecting font family, adjusting size and weight, and using quotes for multiword names, while applying bem naming with underscores and dashes.
Master how the CSS box model governs content size by adjusting height and width, and preserve image aspect ratios with object-fit for inline images and background-size for backgrounds.
Explain how CSS units like rem and em derive from the root font size, compare pixels and root-based measurements, and illustrate descendant versus child selectors for predictable, responsive styling.
Explore how to color text, center headings, and transform text with lowercase, capitalize, or uppercase using CSS text properties, and remove link underlines with text-decoration.
Explore CSS pseudo-class selectors to target element states and types, using first-child, last-child, first-of-type, last-of-type, nth-of-type, and hover to style HTML elements in real world projects.
Master CSS position properties from static to absolute, including relative, fixed, and sticky, and how top, bottom, left, right values affect layout.
Master the CSS box model by learning padding as internal spacing between the content and the border, with shorthand for four, three, two, or one values.
Explore the margin in the CSS box model, showing how margins move elements outside borders, with examples of top, right, bottom, left values and shorthand usage.
Master the CSS box model, the most important concept and foundation of layout, by understanding height and width of the content, padding, border, and margin.
Master CSS pseudo elements and pseudo classes, using ::before and ::after with content and absolute positioning to create decorative lines relative to real HTML elements.
Master CSS specificity, comparing inline styles, IDs, classes (including pseudo-classes and attribute selectors), and element selectors, and grasp how cascade and !important affect which styles apply.
Explore how CSS attribute selectors target elements by attributes like type and placeholder using [attribute] syntax with no space, and apply padding, borders, and outlines to inputs.
Explore how the CSS display property shapes layouts by switching between inline, block, and inline-block, and preview flexbox and grid as future layout tools.
Style navigation anchors with hover effects, using color swaps, padding, transparent borders, and smooth transitions while mastering box sizing for stable, adaptive layouts.
Explore how flexbox and CSS grid enable real-world layouts, with practice-based learning through whiteboard demonstrations and VS Code sessions, delivering responsive designs across devices.
Learn to build a side-by-side blog post layout with flexbox, using the HTML structure of a main container and three article items, each with images, dates, titles, and ipsum.
Create a responsive blog post grid using flexbox, with three article cards each containing image, date, title, and description, while applying practical generic styles and lazy loading.
Learn to create evenly spaced navigation links using flexbox by turning the nav into a flex container and applying justify-content: space-between to distribute space between anchors.
Code a spaced out navigation with flexbox by setting a flex container and four anchors, using justify-content with space-between, space-around, and space-evenly to distribute space along the main axis.
Build three profile cards with an image and text aligned side by side using flexbox, centering the name and role vertically with display flex, flex-direction, justify-content, and align-items in semantic sections.
Master responsive CSS layouts by building a personal info card with two flex containers, aligning image, name, and role using align-items and justify-content, with gaps for clean spacing.
Explore building a sign-in page with flexbox, using semantic HTML (section, form, inputs) and mastering flex-direction, main and cross axes for centered vertical and horizontal alignment.
Build a sign-in page with a semantic form, email and password inputs, a submit button, and three social logins (Facebook, Twitter, Google). Apply flexbox with column layout, gaps, and widths.
Build a responsive gallery by wrapping five figure elements inside a section using flexbox. Learn to apply flex-wrap and gap to control row and column spacing.
Learn to build a responsive gallery of five images using flexbox with wrapping and object-fit: cover, plus centering and gaps for clean reflow on smaller screens.
Build a newsletter form layout using flexbox, with an email input and a submit button that stretch to fill the parent space, via flex grow in a flex container.
Explore building a responsive newsletter form with flexbox: create an email input and subscribe button, set the form to 50% width, and use flex-grow to distribute space.
Create a responsive to-do schedule layout with a section containing a div and a span, align them via display:flex, prevent shrinking using flex-shrink:0, and explore flex-grow and flex-basis.
Create a to-do schedule component using a flexbox layout, center the section with auto margins, and control item alignment with align-self and flex-shrink to prevent stretching.
Explore building a modal layout with flex: structure a section with a title, paragraph, and two anchors, and adjust alignment and sizing using display:flex, flex-direction, and flex-basis.
Create a modal and optimize its layout with flexbox. Learn how flex direction defines the main axis and flex basis governs width for consistent button sizing, plus cross-axis considerations.
Learn to design a responsive navigation with a mobile-first header, logo, and search input using flexbox, with layout rules for desktop, and prepare for media queries.
Explore a responsive navigation example built with flex, using header, logo, links, and a search input; apply flex wrap, order, and media queries to adapt layout on smaller screens.
Build a product card with image, price, title, description, and add-to-cart using flexbox. Use display flex, flex-direction, align-items, justify-content, and align-self to align price left and cart right.
Build a product card with image, price, name, and description, then style with flexbox to align the price left and add-to-cart button right using align-self on individual items.
Design a responsive services section with six cards in a multi-line flex container by wrapping items and using align-content and justify-content principles to balance space and center content.
Explore how to align items in a multi-line flex container using align-content. Craft a responsive services section with six cards, icons, and font awesome via a CDN.
Explore CSS grid fundamentals, comparing two-dimensional grid with flexbox, and learn grid containers, grid items, tracks, lines, and named lines to build responsive layouts.
Learn to build a full-width CSS grid gallery with two 50% width columns containing four background images as grid items, using a grid container and grid template columns.
Develop a responsive full-width image gallery using CSS grid, with four background-image cards in a two-by-two layout, each filling the viewport and using center, cover positioning.
Build a sticky footer layout using a grid with header, main, and footer, sizing rows auto and 1fr to keep the footer at the bottom as content varies.
Create a sticky footer that stays at the bottom as the viewport changes. Use a CSS grid with three rows and set main content to 1fr to fill space.
This lecture demonstrates laying out six blog posts as grid items inside a section using css grid, with a nested grid, repeat for three columns, and column and row gaps.
Learn to build responsive blog post grids with CSS grid, using repeat for columns, and set row and column gaps while arranging image, title, paragraph, and read more links.
Build four pricing tables in a responsive grid, with names, prices, and features, and learn grid fundamentals like grid container, cells, tracks, and place content using justify and align properties.
Learn to code responsive pricing tables with flex and grid alignment, building four pricing cards with names, features, prices, discounts, and call-to-action buttons, plus icons for availability.
Create a pricing component with CSS grid, layout content in two columns and two rows, with the first item spanning two columns and others positioned by grid lines.
Learn to build a responsive pricing component with a three-part layout (community, subscription, features), centered grid, and manual grid placement using column and row lines.
Recreate a gallery grid using css grid with five columns and four rows, positioning ten images by explicit grid columns and rows, including spanning and the repeat template.
Explore coding a 5-column by 4-row gallery grid using css grid, and learn to name grid lines, place items with grid-column and grid-row, and span across rows or columns.
Build a responsive product grid with css grid using the minmax function, auto placement, and gaps; use semantic figures for images and display department, product name, and price with discounts.
Map the sign-up page to a seven-row, six-column grid using grid template areas, placing logo, description, images, email and password fields, submit, Google sign-in, and account link.
Recreate the sign-up page layout using grid template areas, semantic field sets with labels, and styled inputs and a submit button for a responsive, centered form.
Recreate a five-item featured product grid with images, titles, stars, and prices; leverage a two-column CSS grid and grid-auto-flow/grid-auto-rows to manage implicit items.
Explore how to style a dynamically populated product grid with CSS grid, handling implicit items, and choosing grid auto flow to favor rows or columns for responsive designs.
Create an about section using a four-column, two-row CSS grid, place two images in the first column, center the right content, and center the third image with justify-self.
Organize the foxhole website header with semantic html, flex and grid layouts, and a responsive navigation, hero, personal info, services, news, and works grid, including parallax effects.
Organize the hero section in HTML using a semantic hero element, a hero__content container with a title, paragraph, and links, a hero__bg image, and a flex-based link layout.
Organize the personal info section into two containers—content and image—using clear class names like personal-info and personal-info-content, and apply a flex or grid layout for two direct children.
Organize the services section by building a single container with a title, paragraph, and six service cards (icon, title, paragraph), arranged with flex wrap or grid using clear bem-style classes.
organize the news section using the article semantic element with content and image, apply a subtle hover to the button, and use flex with lazy loading for the image.
Organize the my works section by creating a section with a my-works class, a container for images, and nine figure elements with lazy-loaded images from images/my-works/my-work-1 to 9.
Organize the contact section in HTML by creating containers for the left title and right testimonial, using classes like contact__title, contact__info, and contact__image for a responsive layout.
Organize the clients section in html by creating a section with class clients containing four figure elements, each with a lazily loaded image sourced from images/clients/client-1 to client-4.png.
Explore how to structure a footer with semantic HTML, dividing it into newsletter, author, and copyright areas, each with content and links, using flex layouts for even spacing.
Reset browser defaults by zeroing padding and margins with universal selectors. Explain box-sizing border-box, box model, inline vs block, root element, and 62.5% font size from 16px; postpone custom properties.
Create and use CSS custom properties (prefixed with --) to centralize values like color primary and enable theme changes, then apply calc with vw and vh for responsive padding.
Explore dynamic and static sizing with CSS custom properties and the var function. Learn to set typography, colors, padding, and basic utility classes for scalable layouts.
Discover how to finalize a website setup by creating reusable utility classes for section padding, titles, and paragraphs, and apply a utility-first CSS approach with flex and grid.
Set up an overall website layout with a 12-column grid and a fixed 1500-pixel container to guide sections, alignment, and responsiveness; emphasize naming grid lines and avoiding fixed heights.
Learn to style the header section using CSS, focusing on structure, visual hierarchy, and responsive layout with flex, padding, and color. Explore pseudo elements, clip-path shapes, z-index, and hover considerations.
Create a responsive hero section by building a hero content and background, using flex and absolute positioning, preserving image aspect ratio with object-fit, and styling the links with hover effects.
Explore styling the personal info section with utility padding, flex layouts, 50/50 content and image, and hover effects on the image.
Apply custom and utility classes to style a responsive services section, center the title and paragraph, and use flex and grid with minmax and nth-child borders.
Explore styling the news section in the CSS Layouts Masterclass: Build responsive-adaptive websites with flexbox and grid, featuring a subtle hover effect, responsive image handling, and a transform-based link animation.
Explore building responsive layouts with grid and flex, apply utility classes for section padding and color, and craft the works section gallery with hover overlays.
Explore styling a contact section with a parallax background using background-attachment: fixed, responsive flex layouts, and typography tweaks to feature contact info and testimonials.
Style the clients section as a horizontal flex container with a secondary background, set left-right padding, and size figure images with a calc-based height and object-fit: cover to prevent overflow.
Style the website footer with flex layouts, implement a readable overlay using linear gradients on background images, and organize newsletter, author, and copyright sections with responsive css.
Explore how to make a fossil website responsive across devices using media queries, responsive navigation, and layout reflow, from header to content, with a mobile-first mindset.
Make the header responsive with a fixed nav and hamburger menu at small screens. Use media queries around 900px to switch flex direction and reveal off-canvas menu with JavaScript.
Learn to make the hero section responsive with flex wrap, flexible widths, and media queries that stretch the background and optimize content flow for smaller screens.
Build a responsive services section with a minmax container and flowing cards; fix section titles at 25px below 900px via the utility class and remove borders on cards.
Master responsive layouts with an overlapping CSS grid for the news section, spanning images and content across all columns and adjusting color themes below 900.
Make the my works section responsive with CSS grid using auto fit and minmax, applying a 1300px max-width media query so images flow from three to two to one column.
Learn to make the contact section responsive by applying flex wrap, adjusting flex basis in media queries, and switching to 100% widths while updating contact info and testimonial color theme.
Learn to make the footer responsive by wrapping the newsletter, quick links, and author sections with flex-wrap, adjusting flex-basis and padding through media queries for better contrast and layout.
Welcome to the CSS Layouts Masterclass
I am really excited to present to you this comprehensive and real-world oriented masterclass. This masterclass is a product of years of research and experience that will teach you all the ins and outs, all the secrets and tips of becoming a true HTML and CSS master. You will also learn how to create a modern developer workflow using Sass, a CSS pre-processor.
Prominent Masterclass Features
10 Layouts for CSS Flexbox
10 Layouts for CSS Grid
10 Exercises for CSS Flexbox
10 Exercises for CSS Grid
2 Complete Real-World Responsive Websites
1 Complete Real-World Adaptive Website
Modern Sass Workflow
Masterclass Description
I start this masterclass off with the essentials of HTML and CSS. Rather than a boring and theoretical approach, I will teach you all the essentials of HTML and CSS by creating our very first portfolio website. There are also exercises at the end of the HTML essentials and CSS essentials sections to reinforce the concepts and get you involved as well.
Afterwards, you will learn to create 20 layouts with CSS Flexbox and CSS Grid in a problem-based and practical manner. Not only that, you will also have 20 exercises to solve using Flexbox and Grid.
Flexbox and Grid are technologies that help us create stunning websites. In this masterclass, you will learn Flexbox and Grid by solving and coding layouts. I do not follow a boring approach of just going over the Flexbox and Grid without any practical aspect to them. Instead, I am going to teach you every layout in two ways.
*-*-*-*-*-*-* White-boarding Layouts with Flexbox and Grid
Firstly, you will watch me come up with the ideation of the layout in a white-boarding lecture where it is just me and a whiteboard, no computer and no vs code. I will teach you how to come up with the HTML structure for your layouts and how to differentiate among the elements to come up with strategic elements that play vital roles in the context of either Flexbox or Grid. Then, I will write the CSS code on the whiteboard and teach you how to solve that specific layout using either Flexbox or Grid.
*-*-*-*-*-*-* Coding Layouts with Flexbox and Grid
After the white-boarding lecture is done, I am going to jump into vs code and teach you all the HTML and CSS code for that layout as well. As a result, you will learn the thought process of coming up with layouts’ ideas in the white-boarding lectures and you will learn how to code them in the coding lectures.
Now that you have learned your way around Flexbox and Grid, we will code the UI of the portfolio website I taught you in the essentials sections of HTML and CSS. I will also teach you all the secrets and shortcuts to making a website look incredibly awesome and accessible on all kind of devices, big and small.
*-*-*-*-*-*-* Exercises for Flexbox and Grid
There is still something missing, and that is giving you more time to practice and hone your Flexbox and Grid layout creating skills.
You will have 20 unique and mainly e-commerce layouts to exercise for Flexbox and Grid.
Throughout the exercises’ sections, you will have a real-world opportunity to take your Flexbox and Grid to the next level. To make the challenges worth your while, I have included screenshots of all the exercises for Flexbox and Grid and there is no need for you to play any videos. Just download the resource files and work your way through the exercises. There is also one video solution for every exercise layout for you to refer to in case you get stuck.
At this point in the masterclass, you might think that you are done, you learned to create layouts with Flexbox and Grid and you know how to create a responsive website and you have also had a ton of practice and exercises.
*-*-*-*-*-*-* More Projects
But, to take your skills to the absolute MONSTER level, I have two more projects in mind. Our focus will not be on learning Flexbox and Grid anymore as you have already mastered these technologies, rather on more real-world oriented skill sets.
I will teach the thought process of a responsive website and an adaptive website. Yes, you read that right, an adaptive website. Chances are this is the first time you read about an adaptive website, because there is very limited content about it online.
*-*-*-*-*-*-* Modern Developer Workflow
Throughout the second and the third projects, you will learn how to initiate a modern developer workflow and when it comes to project maintainability and scalability. I will teach you project organization, custom properties and variables, functions, utility classes and prepossessing your CSS with Sass.
*-*-*-*-*-*-* Second Project
The second project of this masterclass is to create the UI of a multi-page, real-world and a truly fully-fledged website that is just one step away from becoming a Full-Stack App. This project is called EventGrids and is a responsive, desktop-first project in which the creation and design process of the website start off from a large screen and, consequently the screen size shrinks down. It is the largest website of the masterclass in which you will not only learn a lot of new techniques, but also take your responsive skills to the absolute MONSTER level.
*-*-*-*-*-*-* Third Project
The third project of this masterclass is an adaptive website called ZeaL. It is a single page, mobile-first adaptive website. Throughout this project, I will teach you how to design a website starting from a small screen. This approach is called a mobile-first design approach and is sought out by companies as well. The reason that this skill is high in demand is because, the process of making a website look readable and accessible on all devices becomes easier and more strategic when started from a mobile screen size. Since most of the users visit websites on their smart phones, the demand for this skill has already skyrocketed.
*-*-*-*-*-*-* Third Project Features
The ZeaL project is not done yet when it comes to teaching you cutting-edge skills. By designing and coding this project, you will also learn the adaptive design as well. Adaptive design is often confused or mixed with responsive design. But, these two techniques could not be more different.
*-*-*-*-*-*-* Responsive Design
In a responsive design, the unit values are dynamic. They are constantly changing as the viewport units are shrinking or expanding. That makes the initiation of responsive design extremely difficult.
*-*-*-*-*-*-* Adaptive Design
Adaptive design on the other hand, does not contain any dynamic unit values. It is all about static unit values. The advantage of static units over dynamic units is that static units do not change in regard to viewport dimensions.
This is a very broad topic to which I have dedicated 3 projects. By completing these projects, you will not only understand the differences between responsive and adaptive designs, but also master the design process for any kind of layout and website.
I am sure you will learn a ton of new and real-world skills that will turn into the next generation of web developers.
So, come with me and let me teach you all the cool stuff HTML and CSS can do.
Can't wait to see you in the masterclass