Using Container Queries of CSS @DailyTuition
Using Container Queries of CSS  @DailyTuition
Uploaded January 2023 | Updated November 2026, 14 hours ago
Using Container Queries of CSS
To use container queries, you need to declare a containment context on an element so that the browser knows you might want to query the dimensions of this container later. To do this, use the container-type property a value of size, inline-size, or normal. These values have the following effects:

size: the query will be based on the inline and block dimensions of the container. Applies layout, style, and size containment to the container.
inline-size: the query will be based on the inline dimensions of the container. Applies layout, style, and inline-size containment to the element.
normal: The element is not a query container for any container size queries, but remains a query container for container style queries.

Container queries allow us to look at a container size and apply styles to the contents based on the size of their container rather than the viewport

To query a component based on its parent width, we need to use the container-type property.

Let's see how we can use it in the real projects.

If you want to learn next.js from the beginning here is the link:

NextAuth Course - Complete Authentication with Credentials, Google & GitHub
youtu.be/t0Fs0NO78X8

Complete CRUD Operation With Next.js & MongoDB - For Beginners
youtu.be/RKDfKbLJkZQ

Next.js Complete Course For Beginners
youtu.be/84CvqVTH9Y8

Tailwind CSS Complete Course
youtu.be/lZp4salRFFc

How to Make Blog Website with Next.js & Tailwind CSS - For Beginners
youtu.be/1T3GF6endl8

Javascript Complete Course
youtu.be/LlMCaEK9PLg

⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑

Subscribe To
youtube.com/@DailyTuition

Join this channel to get access to the perks:
youtube.com/channel/UCrG2Z0usOCCdUTAr4D1A8mw/join

👉 Support Me on Patreon 😊:
patreon.com/dailytuition

🚀 Udemy Courses:
udemy.com/user/akshay-kashyap-6

🎅 Playlist :
Complete MERN Series
youtube.com/playlist?list=PLynWqC6VC9KMJ7ffdoGM3LjnYlJPK4kiR
⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑

🛠️ Tools I use:
🟠 My Theme: youtube.com/watch?v=ekHlx6OdSvA
🟠 Font Family: fonts.google.com/specimen/Rubik?query=Rubik
⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑

👉 Follow us:
🟠instagram.com/akki.2013

More Videos:

💡 Complete Node Course
youtu.be/-27HAh8c0YU
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 React Complete Tutorial
youtu.be/jWbzbq2C_RY
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Complete Mobile Shopee E-Commerce Website Course - PHP & MySQL
youtu.be/KLWA2vCERSQ
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Complete Portfolio Website with Bootstrap - HTML/CSS
youtu.be/dgKSqz3it50
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Create a Shopping Cart Using PHP and Mysql
youtu.be/IO5ezsURqyg
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Advanced Tic Tac Toe With HTML, CSS & JavaScript - For Beginners [2022]
youtu.be/kRQEkTHIEyU
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Complete CRUD Operation with PHP MySql Database
youtu.be/JZdMXUIMdQw
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Birthday Remainder Application with React - For Beginners
youtu.be/o2IZaojOz-o
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Bootstrap Grid System The Complete Guide - In Action
youtu.be/hrKMGFkTKF8


Like this video If you find anything useful. Share with your friends that is all for now I will see you In the next one.

Thank You...! 🙏

⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑

Tags: #css #css3
Using Container Queries of CSSTailwind CSS Grid Layout with React - For BeginnersReact with Redux Toolkit For Absolute BeginnersUnderstanding All React 18 Hooks In Depth - For Beginners [#10] - useTransition()React Short Circuit Evaluation #shortsAuthentication App with Google & Github Login - Next.js For Beginners [#20] - Sign UpJavaScript Interview Question #shorts #javascriptNext.js Blog Application with Tailwind CSS - For Beginners [#11] - FooterAuthentication App with Google & Github Login - Next.js For Beginners [#21] - LoginReact App with React Query - Fetch Server DataJavaScript Prefix ++i and Postfix i++ Operator #shortsWhats New in React 19 - New Features
Daily Tuition |

Using Container Queries of CSS

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER