Media Queries
Media Queries are a way to target browsers by certain characteristics, features, and user preferences, then apply styles, or run other code based on those things. They are a key part of responsive web design, as they allow you to create different layouts depending on the size of the viewport, but they can also be used to detect other things about the environment your site is running on, for example whether the user is using a touchscreen rather than a mouse. Media queries are used for the following:
- conditionally apply styles with the CSS
@media
and@import
at-rules - target specific media for the
<style>
,<link>
,<source>
, and other HTML elements with themedia=
attribute - test and monitor media states using the
Window.matchMedia()
andEventTarget.addEventListener()
methods
A media query is composed of an optional media type and any number of media feature expressions, which may optionally be combined in various ways using logical operators.
- Media types define the broad category of device for which the media query applies. The type is optional except when using the not or only logical operators.
- all: Suitable for all devices.
- print: Intended for paged material and documents viewed on a screen in print preview mode.
- screen: Intended primarily for screens.
- Media features describe a specific characteristic of the user agent, output device, or environment. Media Queries Level 4 groups 18 media features into 5 categories.
- Viewport/Page Characteristics
- Display Quality
- Color
- Interaction
- Video-prefixed: The spec references user agents, including TVs, that render video and graphics in two separate planes that each have their own characteristics. (upcoming Media Queries Level 5)
- Logical operators can be used to compose a complex media query: not, and, and only. You can also combine multiple media queries into a single rule by separating them with commas.
- GitHub: https://github.com/topics/media-queries
- Wikipedia: https://en.wikipedia.org/wiki/Media_queries
- Created by: Håkon Wium Lie, W3C
- Released: June 19, 2012
- Related Topics: responsive-design, container-queries, client-hints, css-breakpoints, css-viewport,
- Aliases: media-query,
- Last updated: 2025-05-04 00:18:05 UTC
- JSON Representation
https://github.com/odiegosilva1/ui-clone
Google UI clone made with HTML and CSS 3.
clone css3 html5 media-queries ui-design
Last synced: 21 Mar 2025
https://github.com/jayanth-kotni/match-game-react.js
Match Game is a fun and challenging game where you match images within categories. Score points, beat the timer, and enjoy multiple rounds. Play again to reset scores and categories for endless fun!
components css flexbox media-queries reactjs responsive-web-design timeinterval
Last synced: 28 Mar 2025
https://github.com/vedantagrawal524/testimonials-grid-section
css-grid css3 html5 media-queries vercel-deployment
Last synced: 11 Apr 2025
https://github.com/oleg-putseiko/match-breakpoint
A library of optimized React components and hooks for matching media queries
breakpoint match-media media-queries performance react tailwindcss typescript
Last synced: 11 Apr 2025
https://github.com/robson-teixeira/html-frontend-ii-imersao
Repositório do curso Imersão Front-End 2ª Edição da plataforma Alura.
alura angular bem-css css frontend html html5 imersao-alura imersaoalura imersaoalura-dev imersaodev javascript json-server media-queries reset-css spotify
Last synced: 03 Apr 2025
https://github.com/zeeshanali90233/nexskill-frontend-b-5
Frontend Development with AI Chatbot Course - Batch 5 by NeXskill, Lahore. Learn the fundamentals of HTML, CSS, JavaScript, Git/GitHub, and AI chatbot integration using APIs like ChatGPT, Gemini, Phind, and Claude LLM. A beginner-friendly, 16-lecture course to kickstart your journey in frontend development and AI-powered applications. 🚀
ai animations api chatbot chatgpt clone-website css dom event-loop gemini git github githubdesktop html javascript llm media-queries restful-api weather-app
Last synced: 04 Apr 2025
https://github.com/hashal890/youtube-app
Builded YouTube app with some functionalities in unit-3 @ Masai School.
Last synced: 11 Apr 2025
https://github.com/arpit-shrivastva/useability-hub-webpage
Experience the sleek and responsive design of our Usability Hub webpage, meticulously crafted with HTML, CSS, and media queries. Navigate seamlessly across devices as our website adapts effortlessly to different screen sizes, ensuring a user-friendly experience on desktops, tablets, and smartphones.
css html media-queries responsive
Last synced: 03 Mar 2025
https://github.com/irynadidkivska/yummypug
A website with favourite sweets
adaptive-layouts css3 flexbox-css html5 media-queries
Last synced: 13 Apr 2025
https://github.com/prabhu30/three-column-card-design
This is a challenge project listed on frontend mentor website. I built the project by looking at the design image given.
Last synced: 28 Mar 2025
https://github.com/surendravidiyala/html5_projects
api boilerplate css fancybox html5 javascript jquery media-queries responsive-design semantic-ui
Last synced: 26 Jan 2025
https://github.com/ameyjoshi0209/mealmate
Mealmate is an innovative system designed to automate and streamline attendance tracking for messes and cafeterias using unique QR code generation.
bootstrap composer css3 html5 javascript jquery media-queries mysql-database php phpmyadmin qrcode-generator xampp-server
Last synced: 21 Mar 2025
https://github.com/matheusfdosan/devlinks-rocketseat
O DevLinks é um agregador de links para usar como cartão de visitas online.
css dom figma git github html javascript media-queries rocketseat
Last synced: 23 Feb 2025
https://github.com/maroun-baydoun/use-media-query
Listen to media query matches in React
hook media-queries react responsive typescript
Last synced: 21 Mar 2025
https://github.com/gunjankadu/edge-ledger
A Fictional Website Markup Using HTML5,CSS3,Flex and Media Queries
css3 flexbox html5 javascript media-queries
Last synced: 23 Feb 2025
https://github.com/akramadjab/ecommerce-website
Full stack e-commerce app built using vanilla javascript and commece.js api
api babeljs bem-methodology commercejs css-animations css-flexbox css-grid css3 html5 javascript javascript-es6 javascript-vanilla media-queries parcel parcel-bundler sass scss scss-mixins scss-modules
Last synced: 06 Mar 2025
https://github.com/kento75/website-design-learn
css3 grid-layout html5 media-queries
Last synced: 05 Apr 2025
https://github.com/gobimahato/skilled-e-learning
A challege from Frontend Mentor.
css3 custom-properties flex-grid html5 media-queries
Last synced: 24 Feb 2025
https://github.com/dimitribouteille/sass-no-duplicate-breakpoints
Sass no duplicate breakpoints est une librairie Sass qui permet de regrouper les points de rupture.
css media-queries responsive responsive-css sass sass-library sass-mixins
Last synced: 05 Apr 2025
https://github.com/beanloop/react-with-media
React HOC for watching media queries.
higher-order-component media-queries
Last synced: 23 Feb 2025
https://github.com/kenyosaenzrojas/results-summary-component
css flexbox grid-layout html media-queries responsive
Last synced: 04 Apr 2025
https://github.com/harisdev-netizen/faqaccordioncard
Frontend Mentor Challenge - FAQ Accordion Card
Last synced: 24 Feb 2025
https://github.com/talhat298/bus-travel
A simple, pure CSS animation featuring a bus and a car traveling across a detailed background. The animation includes moving vehicles with rotating wheels, all designed using only HTML and CSS, without any JavaScript.
Last synced: 05 Apr 2025
https://github.com/talhat298/quader
A responsive web page featuring a full-screen background, Bengali text overlay, and looping audio, prompting the question: "Will all problems be solved just by saying sorry?"
audioapi css3 html5 media-queries responsive-web-design
Last synced: 05 Apr 2025
https://github.com/swadeshchisim/testimonial-page
Testimonial Page
css3 html5 media-queries responsive-design
Last synced: 22 Feb 2025
https://github.com/ashishsingh-30/temporarytest
OneInsure Task
css media-queries reactjs redux shadcn-ui tailwindcss typescript vitejs
Last synced: 05 Apr 2025
https://github.com/pushpendra-1697/kalvium
Draggable & Droppable
html-css-javascript media-queries
Last synced: 24 Feb 2025
https://github.com/sashapt/the-unique-taste-landing
Landing layout
animation gulp javascript media-queries scss
Last synced: 17 Feb 2025
https://github.com/nermfrontdev/practice-index
CSS practice project. Basic HTML file with its tags, in CSS I added a @media (min-width: 1900px) making "Mobile First".
Last synced: 03 Mar 2025
https://github.com/sojibpannashovon2/world-cup-qatar
Assignment-2 About World Cup
css css-animations css-grid css-layout css3 flexbox html5 media-queries responsive-layout
Last synced: 13 Mar 2025
https://github.com/mosalem149v2/bank-account-simulator_debi-task
A web-based bank account simulator allowing users to create accounts of various types (Savings, Checking, Business), perform transactions, and manage loans. The simulator supports deposit, withdrawal, loan requests, interest calculation, and more.
account-creation business-features css3 dom-manipulation error-handling html5 interest-calculation js media-queries responsive transactions
Last synced: 04 Mar 2025
https://github.com/mosalem149v2/football-match-scoreboard_debi-task
A simple web application to display a football match scoreboard, featuring team rosters, match odds, and functionalities for substitutions and goal tracking. Built using HTML, CSS, and JavaScript.
css3 html5 js media-queries responsive
Last synced: 04 Mar 2025
https://github.com/sofi-bel/how-to-learn
A landing page about educational techniques and statistics in teaching.
adaptive-layouts adaptive-web-design bem css3 flexbox grid html5 media-queries mobile-first pug relative-units responsive-layout responsive-web-design scss semantic-layout web-accessibility webpack webpack5 youtube-api
Last synced: 11 Mar 2025
https://github.com/sofi-bel/mesto-project
A landing page about traveling.
adaptive-layouts bem css3 flexbox grid html5 javascript js media-queries mobile-first pug relative-units responsive-design responsive-layout scss semantic-layout web-accessibility webpack webpack5
Last synced: 11 Mar 2025
https://github.com/byteyard/fluidsizingcss
FluidSizingCSS is a pure CSS solution for responsive design, offering fluid sizing locks for seamless scaling across devices. It eliminates the need for external tools, enabling developers to create adaptable, lightweight, and fast interfaces with native CSS.
adaptive-design css fluid-sizing media-queries native-css responsive-design scaling web-development
Last synced: 05 Apr 2025
https://github.com/yousryessam/todoapp
To-Do List app
css css3 flexbox html html5 javascript media-queries responsive-design
Last synced: 21 Mar 2025
https://github.com/narendrakoya999/nft-preview-card-component
This is A NFT Preview Card Component Project using HTML5 and CSS3
css-flexbox css3 html5 media-queries
Last synced: 21 Mar 2025
https://github.com/gustavogss/instagram-clone
Tela inicial do site do Instagram - Html e Css
css3 flexbox html5 media-queries
Last synced: 21 Mar 2025
https://github.com/tawounfouet/road-to-frontend-mastery
Documenty my fronte-end learning journey
ajax api css html html-css-javascript javascript media-queries responsive
Last synced: 24 Feb 2025
https://github.com/amokorankye/personal-portfolio-website
Welcome to my portfolio. Explore my work, get in touch, and learn more about my journey in the tech industry.
html-css javascript media-queries
Last synced: 06 Apr 2025
https://github.com/foramghoghari08/restaurant_website
Restaurant Website
css html javascript media-queries
Last synced: 06 Apr 2025
https://github.com/eaglestear/first-production-website
A website I developed for a graphic designer - this is currently waiting to be tweaked and can then go live. Uses JS Flickity plugin to power the gallery.
first-client media-queries responsive-web-design web-development
Last synced: 29 Mar 2025
https://github.com/mohamedsanosy/nataliapnk
🚀 Welcome to my GitHub! Here, I thrive on embracing 💡 new tech challenges and crafting seamless user experiences. 💻☕ Fueled by coffee, I see every line of code as an opportunity ✨ to make the web better 🌐!
css flexbox grid html javascript media-queries react redux responsive-web-design
Last synced: 24 Feb 2025
https://github.com/krgauravsk/create-dynamic-form
Create a Dynamic Form
media-queries react-hooks reactjs
Last synced: 18 Feb 2025
https://github.com/rakibhasaniu/world-cup
world-cup
css3-animations html media-queries
Last synced: 18 Mar 2025
https://github.com/jacobgrisham/float-layout-with-advanced-responsive-design
Travel Company Landing Page using Sass, a float layout, and advanced responsive design.
bem-css bem-methodology bem-naming clearfix css css-animations css-architecture css-float css3 float media-queries npm-scripts responsive responsive-web-design sass sass-architecture sass-mixins sass-variables scss
Last synced: 29 Mar 2025
https://github.com/muhammadaliashraf/grumpy_bear_town
Grumpy Bear Town: A whimsical and charming single-page website that transports you to a world of grumpy bears and their daily adventures. Explore delightful illustrations, funny anecdotes, and interactive elements that capture the spirit of these lovable but grumpy characters. Dive into Grumpy Bear Town and experience a bear-y good time!
css-flexbox css3 front-end htm-css html html-website landing-page landingpage media-queries muhammadaliashraf resposive-design single-page-app website-development websitedesign
Last synced: 17 Feb 2025
https://github.com/cabosmanuel/grid-food
Grid Food, responsive grid website
css grid html media-queries responsive
Last synced: 06 Apr 2025
https://github.com/cabosmanuel/batata-bit-mobile
Batatabit website project (HTML+CSS)
css html media-queries mobile-first responsive scroll-snap
Last synced: 06 Apr 2025
https://github.com/jacobgrisham/flexbox-layout-with-responsive-design
Hotel Listing Info Page using Sass, a flexbox layout, and responsive design.
bem-css bem-methodology bem-naming css css-animations css-flexbox css3 flexbox media-queries npm-scripts responsive responsive-web-design sass scss
Last synced: 29 Mar 2025
https://github.com/jacobgrisham/grid-layout-with-responsive-design
Home Rental Landing Page using Sass, a grid layout, and responsive design.
bem-css bem-methodology bem-naming css css-grid css3 grid-layout media-queries npm-scripts responsive responsive-web-design sass scss
Last synced: 29 Mar 2025
https://github.com/grayturtle01/google-front-end
Google Search Front-End Implementation
css flexbox html javascript media-queries responsive-design
Last synced: 04 Apr 2025
https://github.com/sohomsaha/tindog
In this project I had used HTML5,CSS,BOOTSTRAP and MEDIA QUERIES
bootstrap4 css html5 media-queries
Last synced: 22 Mar 2025
https://github.com/damiieibikun/libro-clone
Colorlib Libro Clone
css-animations grid-layout html5 jquery jquery-animation media-queries
Last synced: 05 Mar 2025
https://github.com/damiieibikun/poketo-clone-api
Poketo E-commerce Clone-API
api-rest bootstrap5 clone-website html-css-javascript localstorage media-queries restful-api
Last synced: 05 Mar 2025
https://github.com/damiieibikun/logicaloperations-homepage
Logical Operations Home page Clone
css-animations css-grid css-sass css3 flex grid-template html5 media-queries responsive
Last synced: 05 Mar 2025
https://github.com/damiieibikun/loan-application
A simple Loan Application
conditional-statements css-grid dom-manipulation eventlisteners flex form-validation functions javascript media-queries
Last synced: 05 Mar 2025
https://github.com/namonaki0/fe-mentor-interactive-rating
Frontend Mentor - Interactive Rating Component Challenge
frontend-mentor-challenge html javascipt keyframes media-queries responsive-design scsss
Last synced: 05 Mar 2025
https://github.com/maiquitome/rocketseat-projeto-zingen-responsividade
🎤🎙️🎶🎵 Projeto do curso `Full-Stack` da **Rocketseat**
media-queries responsive-design rocketseat-fullstack-course
Last synced: 05 Mar 2025
https://github.com/gabyfutemma/kitten
Laboratoria - Sprint 3 - Challenge: make images fit the screen size
Last synced: 22 Mar 2025
https://github.com/etcdigital/atomic-css
Atmc provides a reusable html styling process, eliminating any duplication of styles and minimizing on demand, reducing about 70% of the CSS weight. Styles are automatically added to the page without any additional effort.
css-atomic-elements css-in-js css-in-react css-prefix css3 keyframes media-queries
Last synced: 05 Mar 2025
https://github.com/mujahidbcs92/ifza-intvtask
Promo landing page using html, css, js and for responsive only media quries.
css css-flexbox css-grid css-grid-layout css3 html javascript media-queries
Last synced: 22 Mar 2025
https://github.com/kenyosaenzrojas/frontend-simple-coffee
css fetch-api flexbox html javascript media-queries
Last synced: 04 Apr 2025
https://github.com/kenyosaenzrojas/checkout
css flexbox grid-layout html media-queries responsive
Last synced: 04 Apr 2025
https://github.com/harshitha-2201/weatherapp
This is a weather prediction app using React by using openWeatherApi
api arrow-functions current-timezone hooks html-css-javascript javascript material-ui media-queries openweathermap-api react-weather-app reactjs responsive-web-design search temparature ui-design useeffect-hook usestate-hook weather-forecast
Last synced: 17 Feb 2025
https://github.com/lankaukk/cat-treat-landing-page
Responsive Landing Page for Public Good's cat food Product 🐱
css cssflexbox html-css media-queries
Last synced: 26 Mar 2025
https://github.com/danilosalvador/zingen
Projeto 05 do MBA Rocketseat Full-stack para reforçar os conceitos de CSS Media Queries para criação de páginas responsivas.
Last synced: 25 Feb 2025
https://github.com/rohitchourey0809/my-camera-app
CaptureCam is your go-to camera app for effortless photo and video capture. With intuitive controls and dynamic features, it's designed to enhance your photography experience.
css-flexbox grid-layout media-queries optimization react react-hooks react-webcam
Last synced: 14 Mar 2025
https://github.com/rasujon3/leader-board-css3
Module-9 - Plain HTML CSS responsive website
css3 flex grid html5 media-queries
Last synced: 06 Apr 2025
https://github.com/sanika365/womeni--website
This is Client-side webpage using html and CSS
color-gradients css-icons flexbox-grid flickity footer-css html-css-javascript html-forms media-queries navbar newsletter
Last synced: 25 Feb 2025
https://github.com/rimshasajid436/facebook
Create Responsive Facebook Clone For CSS Final Task..
box-shadow cursor flex media-queries
Last synced: 05 Mar 2025
https://github.com/dhruv9916/user-junction-a-static-website
User Junction-A Static Website
css font-awesome html5 javascript media-queries
Last synced: 18 Feb 2025
https://github.com/fatihycan/product-card
css3 font-awesome google-fonts html5 media-queries responsive-web-design
Last synced: 05 Mar 2025
https://github.com/fatihycan/query-media
css3 flexbox html5 media-queries responsive-design
Last synced: 05 Mar 2025
https://github.com/simonapiz/tsunamicoffee
Make this site responsive with CSS media queries
codecademy-solutions css html media-queries responsive-design website
Last synced: 07 Apr 2025
https://github.com/anandchowdhary/prefers-contrast
🕶️ Check a user's preference using CSS @media(prefers-contrast)
css media-queries prefers-contrast typescript
Last synced: 18 Feb 2025
https://github.com/anandchowdhary/light-level
💡Get a user's light level using CSS @media(light-level)
css light-level media-queries typescript
Last synced: 18 Feb 2025
https://github.com/annal001/deep-dish-pizzeria
A web application of a fictional pizzeria (Deep Dish Pizzeria) that allows users to place order(s) for their pizzas online, in terms of size, type of crust and toppings
bootstrap5 css3 html5 javascript jquery media-queries
Last synced: 14 Mar 2025
https://github.com/andresilveira1/space-cream
css grid-layout media-queries variables-css
Last synced: 14 Mar 2025
https://github.com/mehmet-github06/password-genarator
This is a simple web application that allows users to generate secure passwords with various options for customization.
html-css-javascript media-queries notyfication responsive-design
Last synced: 05 Mar 2025
https://github.com/mehmet-github06/informative-web-page
This is a simple informative web page template showcasing various sections such as navigation, posts, and developer's features.
css3 flex html5 media-queries responsive
Last synced: 05 Mar 2025
https://github.com/mehmet-github06/transistor-website
TRANSİSTOR is a website that showcases various courses and information sessions.
animation css3 flex html5 media-queries
Last synced: 05 Mar 2025
https://github.com/mehmet-github06/password-genarator-2
This is a simple web application where users can generate secure passwords with various customization options.
dom-manipulation html-css-javascript media-queries responsive-web-design
Last synced: 05 Mar 2025
https://github.com/mehmet-github06/travel-app
This project is a simple web interface designed for a travel site using HTML, CSS - SASS and JS.
flexbox html-css-javascript media-queries responsive sad
Last synced: 05 Mar 2025
https://github.com/mehmet-github06/sport-news-website
This is a simple website template for displaying sports news. It consists of a grid layout showcasing various news articles with images and brief descriptions.
css-grid html5 media-queries responsive
Last synced: 05 Mar 2025
https://github.com/derektypist/navigationmenu
Example of Navigation Menu with Hover Effect
css3 gases header hover media-queries navigation solids vertical
Last synced: 22 Mar 2025
https://github.com/saakeeb/odami-course
A Single Page Application for online learning web-app demo
bootstrap4 css eventhandlers font-awesome media-queries reactjs reactjs-components useeffect-hook usestate-hook
Last synced: 18 Feb 2025
https://github.com/dracudev/html-css-flex
Project to practice HTML and CSS.
animations-css css3 html5 media-queries
Last synced: 30 Mar 2025
https://github.com/ranjeet2311/multi-layered-image-gallery
NodeJs, ExpressJs, Java script/jQuery, Ajax, Media query, Html, Css, Scss,
ajax-call css endpoints expressjs html5 jquery jquery-ajax media-queries nested-loops nodejs-server scss-styles serverside-rendering
Last synced: 14 Mar 2025