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
• NextAuth Course - Complete Authentica...
Complete CRUD Operation With Next.js & MongoDB - For Beginners
• Complete CRUD Operation With Next.js ...
Next.js Complete Course For Beginners
• Learn Complete Next.js Course in 2 Ho...
Tailwind CSS Complete Course
• Tailwind Complete Course For Beginner...
How to Make Blog Website with Next.js & Tailwind CSS - For Beginners
• How to Make Blog Website with Next.js...
Javascript Complete Course
• Learn Complete JavaScript Course From...
⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑
Subscribe To
/ @dailytuition
Join this channel to get access to the perks:
/ @dailytuition
👉 Support Me on Patreon 😊:
/ dailytuition
🚀 Udemy Courses:
https://www.udemy.com/user/akshay-kas...
🎅 Playlist :
Complete MERN Series
• Getting Started with MERN Stack Appli...
⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑
🛠️ Tools I use:
🟠 My Theme: • Finally, I am Back! Starting with the...
🟠 Font Family: https://fonts.google.com/specimen/Rub...
⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑⋐⋑
👉 Follow us:
🟠 / akki.2013
More Videos:
💡 Complete Node Course
• Complete Node & Express with 5 Projec...
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 React Complete Tutorial
• Complete React 16.8 Crash Course For ...
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Complete Mobile Shopee E-Commerce Website Course - PHP & MySQL
• Complete Mobile Shopee E-Commerce Web...
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Complete Portfolio Website with Bootstrap - HTML/CSS
• Complete Portfolio Website with Boots...
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Create a Shopping Cart Using PHP and Mysql
• Create Shopping Cart Using PHP and Mysql
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Advanced Tic Tac Toe With HTML, CSS & JavaScript - For Beginners [2022]
• Advanced Tic Tac Toe With HTML, CSS &...
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Complete CRUD Operation with PHP MySql Database
• Complete CRUD Operation with PHP MySq...
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Birthday Remainder Application with React - For Beginners
• Birthday Remainder Application with R...
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
💡 Bootstrap Grid System The Complete Guide - In Action
• Asp.net Registration Form with SQL Da...
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