Simone Rescio yet another coder blog

Search
Skip to content
  • English
    • Italiano
    • Log in
    • Lost password
    • Register
    • Edit your profile
    • Log out
    • Public profile
  • Contacts
    • GitHub
    • CodePen
    • Mastodon
    • BlueSky
    • LinkedIn
    • subito.it
  • Apps
    • SitCom
    • Spell
    • ZipUrl
    • Bookmarks
    • Boss Bar Generator
    • hue Cleaner
  • CSS
  • JavaScript

🏠 Home ➡️ Archivi per 📚 09/04/2014

Daily Archives: 09/04/2014

Apply CSS styles based on device orientation
JavaScript

Apply CSS styles based on device orientation

09/04/2014 Simone Rescio
April 19th, 2026
Leave a comment

The CSS orientation media query checks window dimensions, not the accelerometer. Discover the unexpected behavior on Android Multi Window devices and the clean JavaScript fix using data attributes.

androidattribute modulesCSSjavascriptmedia querymobilemulti windoworientation

Log In

Login with your Social ID

Newsletter

Want to know when a new post is available?
Drop your email here!

April 2014
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
282930  
    May »
  • HP deskjet 2620 stampante scanner a colori 6

    HP deskjet 2620 stampante scanner a colori

    30 €
  • EDISION PICCOLLINO Decoder DVB-S2 HD Satellitare 6

    EDISION PICCOLLINO Decoder DVB-S2 HD Satellitare

    35 €
  • FRITZ!Powerline 1260 WLAN Kit extender 3

    FRITZ!Powerline 1260 WLAN Kit extender

    220 €
  • Laica bilancia pesapersone digitale 5-150kg vetro 4

    Laica bilancia pesapersone digitale 5-150kg vetro

    15 €
  • iRobot Braava 380 robot lava pavimenti 2

    iRobot Braava 380 robot lava pavimenti

    160 €
  • Mini UPS DC 5VDC/9VDC/12VDC - Potenza 25W - bianco 5

    Mini UPS DC 5VDC/9VDC/12VDC - Potenza 25W - bianco

    40 €
  • Mini UPS - DC 5VDC/9VDC/12VDC - Potenza 25W nero 5

    Mini UPS - DC 5VDC/9VDC/12VDC - Potenza 25W nero

    40 €
  • Mono microphone Gaming headset 2

    Mono microphone Gaming headset

    10 €
  • TicWatch Pro - smartwatch MobVoi 5

    TicWatch Pro - smartwatch MobVoi

    40 €
  • Roborock S5 Max 5

    Roborock S5 Max

    210 €
subito.it logo La mia bacheca su subito.it
I love coffee, it's the main fuel I use to produce code, if you found useful any of my articles you can gift me a coffee as thanksgiving :)

Toots @srescio

  1. Loading Mastodon feed...
Simone Rescio LinkedIn profile photo

Simone Rescio

Frontend Engineer @ Expedia Group | Software Engineer (UI) | React · TypeScript · AI-augmented

Expedia Group | Università degli Studi di Roma Tre

View profile
Simone Rescio

Front End developer at Expedia Group; on the blog I write about AI coding assistants and MCP (Model Context Protocol). Also, manga addicted, sharing my (mis)adventures in the fields of CSS && JavaScript 💻, be #SOLID, #KISS #DRY or #DIE

Need more info? > Biography

Language

  • Italiano
  • English

Recent Posts

  • Home Assistant 2025.7.0 with Ezviz battery work mode
  • hue Cleaner – Ambilight + Hue sync without slowness
  • Alexa app slow on iOS or Android? It’s your Contacts fault
  • Switcheroo, bluetooth keyboard and mouse across Macs made easy
  • Your Alexa routine stopped working? It might be due to Announcements
  • Tilde and backtick for dummies
  • Sony WH-1000XM3 review, top tier fame, trash at best

Tags

  • alexa
  • android
  • Budapest
  • bummer
  • business travel
  • Chrome
  • cli
  • Command Line API
  • conference
  • CSS
  • css3
  • css table
  • debug
  • display
  • dotJS
  • Firefox
  • France
  • front end
  • Gecko
  • github
  • headphones
  • hellosplash
  • https
  • Hungary
  • inline-block
  • javascript
  • lifeAtExpedia
  • mobile
  • multi window
  • phonegap
  • picnic
  • programming
  • redirect
  • requirejs
  • Rome
  • Spell
  • ssl
  • startcom
  • Tim
  • tls
  • user experience
  • user interface
  • viewport
  • WebKit
  • Word
© Simone Rescio - CC BY 3.0 IT Creative Commons License Privacy Policy
Proudly powered by WordPress