Media query, images, retina, and typography responsiveness
-
Updated
Jan 8, 2019 - CSS
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:
@media
and @import
at-rules<style>
, <link>
, <source>
, and other HTML elements with the media=
attributeWindow.matchMedia()
and EventTarget.addEventListener()
methodsA 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.
* **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.
* **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)_
Media query, images, retina, and typography responsiveness
🎁 Chanho`s Boilerplate!!!
Flutter Responsive Admin Panel or Dashboard
Work Store Place
Final-Task-Responsive-Course
Use native CSS media queries to customize component props
JavaScript analog of Bootstrap SCSS media breakpoints mixins.
I have created a Temperature Converter (Celsius - Fahrenheit). Project is based on HTML, CSS/Sass and JavaScript.
It'll help you write media queries the easy way, plus other interesting functions to make you more productive coding css.
Use same mechanics like CSS media queries in JavaScript instead ResizeObserver
Windi CSS plugin for add media interaction variants
using html and css ( responsive with media queries for mobile and tablet )
Experiment to test the rendering speed of media queries.
Created by Håkon Wium Lie, W3C
Released June 19, 2012