About 368,000 results
Open links in new tab
  1. Managing screen orientation - Web APIs | MDN - MDN Web Docs

    Jul 26, 2024 · CSS provides the orientation media feature to allow adjusting layout based on screen orientation. The Screen Orientation API provides a programmatic JavaScript API for …

  2. javascript - Force the browser to load the page in portrait orientation ...

    Sep 22, 2015 · I need to show up my page on mobile Phones and Tablets in portrait mode. How can I force the browser to load it in this orientation. Or how can I disable the landscape …

  3. How to Create a Portrait Mode Only Mobile-First Web App

    Jul 22, 2021 · Not all native apps or mobile-first web apps are designed to work in both portrait and landscape orientations on mobile phones. While it would be nice to lock the screen …

  4. Responsive Layouts Based on Device Orientation in JavaScript

    Dec 12, 2024 · Responsive designs based on device orientation can significantly enhance user experience on various devices. By combining JavaScript with CSS, you have versatile tools at …

  5. HTML5: Screen Orientation API Uses Javascript to Rotate the

    By using the HTML5 Screen Orientation API, you can now define the screen orientation in JavaScript. The screen orientation can be adjusted via the screen.orientation property and the …

  6. Mastering the JavaScript Screen Orientation API - W3docs

    The JavaScript Screen Orientation API enhances the functionality of web applications by allowing developers to programmatically determine and lock the orientation of the screen. This API is …

  7. javascript - How do I lock the orientation to portrait mode in a …

    Apr 29, 2015 · .use-portrait { display: block; } Which would hide your main-content and show the use-portrait div when the device is in landscape mode. You can use some additional CSS to …

  8. ZIM BITS - Responsive Design for JavaScript HTML 5 Canvas …

    ZIM BITS - Make ZIM Shapes for JavaScript HTML 5 Canvas and CreateJS - Tips, Techniques and Tutorials

  9. Creating Dynamic Creative Coding Portrait with JavaScript

    Nov 5, 2024 · This creative coding project combines the power of HTML5 Canvas and JavaScript to create an engaging, interactive visual. By analyzing pixel brightness and responding to user …

  10. Enhance Mobile UIs by Checking Orientation in JavaScript

    Dec 13, 2024 · In today's mobile-first world, ensuring that your web application's user interface (UI) is optimized for both portrait and landscape orientations can greatly enhance user …

  11. Some results have been removed
Refresh