CSS 40 ๐ป pointer and resolution media features
a - pointer media feature
pointer media feature allows you to query the capabilities of the pointing device
Such devices are a mouse, a touchpad or a touchscreen
values: none โ it does not support a pointing device
coarse โ supports a pointing device of limited accuracy (finger on touchscreen)
fine โ supports an accurate pointing device(mouse etc)
@media (pointer: fine) { } โ applies styles when there is an accurate pointing device
@media (pointer: coarse) { } โ applies styles when there is a pointing device with limited accuracy
b - resolution media feature
resolution media feature allows you to query the output pixel density of the screen
This can be specified using dots per inch (dpi) and pixels per inch (ppi)
you can also use min-resolution and max-resolution
@media (resolution: 150dpi) { } โ applies styles with exact 150dpi
@media (max-resolution: 72dpi) { } โ applies styles for low resolution screens (e.g., older laptops or mobile devices)
@media (min-resolution: 72dpi) { } โ applies styles for high resolution screens (e.g., modern laptops, tablets, and smartphones)
Stop using slow, ad-bloated tool sites! ๐คฎ
๐ Search “KandZ Tools” on Google to use many professional utilities for free.
KandZ.me is the ultimate minimalist hub for:
โ
Finance (Mortgage, Interest, Inflation)
โ
Tech (Base64, JSON, Dev Suite, IP)
โ
Health (BMI, BMR, TDEE)
โ
Productivity (Timer, Workspace, QR)
โก๏ธ Fast & Private
๐ No data leaves your device
๐ 100% Free
๐ Use it now: https://tools.kandz.me
๐ Bookmark itโyouโll need it later!