CSS 38 ๐ป monochrome and orientation media features
a - monochrome media feature
monochrome media feature is used to test the numbers of bits per pixel
Typically on devices that cannot handle color accurately
You can also use min-monochrome and max-monochrome
@media (monochrome) { }โ applies styles to any monochrome device
@media (monochrome: 0) { }โ applies styles to non-monochrome device
@media (min-monochrome: 1) { } โ applies styles specific to monochrome devices with at least 1 bits per pixel (bpp)
@media (min-monochrome: 8) { } โ applies styles specific to monochrome devices with maximum 8 bits per pixel (bpp)
b - orientation media feature
orientation media feature allows you to apply different styles based on user's screen orientation
This is useful for creating responsive designs that adapt to how the context is being viewed
values: portrait โ the height is greater or equal to the width
landscape โ the width is greater than the height
@media screen and (orientation: portrait) { } โ applies styles for portrait orientation
@media screen and (orientation: landscape) { } โ applies styles for landscape orientation
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!