#MediaQuery

Nils Hörrmannnilshoerrmann
2025-05-15

In Safari, does anyone know why the existence of a container definition (`container-name`/`container-type`) in a layout results in media queries not getting executed at all or being delayed by 5 to 10 seconds? Like you resize the window and nothing happens, you can still interact with the site and then suddenly the layout flips?! Experienced this for the first time and am a bit stumped.

Línea de Códigolineadecodigo
2025-02-07

Páginas adaptadas para imprimir con CSS lineadecodigo.com/css/paginas- por @victor_cuervo

Inautiloinautilo
2024-12-19


Getting oriented with HTML video · How to serve a clip in portrait or landscape format ilo.im/161hb7

_____

Inautiloinautilo
2024-12-19


Getting oriented with HTML video · How to serve a clip in portrait or landscape format ilo.im/161hb7

_____

Inautiloinautilo
2024-12-16


CSS @import is cool, actually · It delivers some useful features a ‘link’ doesn’t offer ilo.im/161egj

_____

Inautiloinautilo
2024-08-15


‘Smart’ CSS layouts with container queries · New options we never had with media queries ilo.im/15zshu

_____

Inautiloinautilo
2024-06-11


CSS Container Queries · A contemporary approach to responsive web design ilo.im/15z5q7

_____

Ana Tudor 🐯anatudor
2024-04-29

Pure CSS text effect codepen.io/thebabydino/details

No text duplication, no JS, no images save for CSS gradients, no SVG at all. Under 20 CSS declarations, including layout, prettifying, `@​media` queries, `@​supports` blocks, CSS variable declarations...

No Firefox (bug 🪲 1481498 ).

Heavily commented as well.

Shows the text "dreams" in narrow all caps on top of a leaves under blue light background. This text has a split line along the main diagonal. To the bottom left of this split line, the text is filled (white) and has no background. To the top right of this split line, the text is just stroked (white) with no fill and has a medium blue stripes horizontal background.
Inautiloinautilo
2024-04-27


Write better CSS with modern CSS · New CSS features can help you streamline your code ilo.im/15ynzs

_____

Inautiloinautilo
2024-04-26


Detect JavaScript support in CSS · Pros and cons of using the ‘scripting’ media feature ilo.im/15ymv3

_____

Inautiloinautilo
2024-03-11


Add superpowers to your CSS variables · “We’re on the verge of yet another CSS revolution.” ilo.im/15y7gy

_____

Ana Tudor 🐯anatudor
2024-03-08

is difficult, arranging elements that are container queries (so their internal layouts and aspect ratios change too) on the page for different viewport sizes *and* aspect ratios such that the most important info is always in sight. Scrolling is not an option in this case.

It's not the code part of it I struggle with...

Inautiloinautilo
2024-02-05


The most underused CSS media queries · They help ensure your site works across all devices ilo.im/15xva6

_____

2024-01-25

Did someone already experience a non-working breakpoint with (max-width: 839px) for the browser width 839px across all browsers – but only on Windows? 🤔

#CSS #Windows #Breakpoints #MediaQuery #Support

2023-12-16

TIL about `@media (scripting)` query that can be used to detect if JavaScript is enabled in the browser using CSS.

developer.mozilla.org/en-US/do

#CSS #MediaQuery

Inautiloinautilo
2023-12-10


Media queries in HTML video · How CSS media queries can affect HTML videos ilo.im/15xdjy

_____

Inautiloinautilo
2023-12-04


CSS Media Query for scripting support · “A pretty great feature for progressive enhancement.” ilo.im/15xbjp

_____

Ana Tudor 🐯anatudor
2023-11-21

Also, this is so silly, but when I saw this in a shopping complex in Umeå, my brain instantly went "media query" 🙃

A store with the MQ logo. Which likely doesn't stand for "media query", even if that was what it made me think of.
Inautiloinautilo
2023-06-08


Re-evaluating px vs em in Media Queries · Is the common recommendation to use ems instead of pxs still valid? ilo.im/13esaa

_____

pablolarahpablolarah
2023-03-21
White text on blue background:
 I no longer understand prefers-contrast

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst