Article Preview Component build with HTML CSS Vanilla JavaScript
-
Updated
May 14, 2024 - 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)_
Article Preview Component build with HTML CSS Vanilla JavaScript
🔍 <Only /> displays some contents for particular screen sizes
A landing page about educational techniques and statistics in teaching.
Minimalist warehouse management & presentation system frontend for Photon Pictures at UIUC
Simple and powerful breakpoints for styled components and emotion.
A stunning, responsive, real world project with modern HTML5 and CSS3, including flexbox and CSS Grid for layout
📸 Sliding action script
Um card com os links das minhas redes sociais.
A Leon institution Responsive website To provide technology services.
一款 PostCSS 插件,将固定尺寸的视图转为可跟随宽度变化而等比例伸缩的视图。To adapt different displays by one mobile viewport.
Mealify is a stunning responsive webpage that supports dark mode.
An SSR compatible approach to CSS media query based responsive layouts for React.
Logical Operations Home page Clone
Testimonials section with grid layout , using React and some media queries
Svelte component and helper functions for creating easy responsive layouts with CSS media queries.
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!
A landing page about Traveling in Russia.
Created by Håkon Wium Lie, W3C
Released June 19, 2012