How to position contents according to zoom level?

Tags: html,css,css3

Problem :

I see this website:

I like it. When I zoom in the navigation adjusts, and if I zoomed to >200% a new button called 'Menu' appears, which groups all the navigation links together when clicked.

I want to know how is this possible? Is it pure CSS or JS included? I tried using percentages for scaling but it does not position as cleanly as the website mentioned.

Solution :

You should use Cross Browser Zoom and Pixel Ratio Detector


   var zoom = detectZoom.zoom();
   var device = detectZoom.device();
   alert("zoom: "+zoom +" , device:" +device);


    CSS Howto..

    How do I highlight only the innermost table row of a nested table?

    How to manage div positionning?

    how to center a webpage in CSS

    How can i overlay an 10x10px image on top of another image?

    How to manage css files the best way

    How to make div horizontally and vertically centered without scripting?

    How to set a div within text?

    css how to fix layout in table

    How to select the first paragraph in a div with a specific class (CSS 2)

    Off-canvas navigation: How to make a second-level menu slide in on top of first-level menu without covering body text?

    How to apply more than 1 CSS styles in javaScript? [duplicate]

    In CSS, how to create automatic section numbering only when there are multiple sections?

    How to get multiple rotating background cover with css / Full screen slideshow

    How can I create a line after my text to the width of the container?

    how to make dropdown using html and css?

    How do I use Parent page to get attributes for wp_nav_menu buttons?

    How to use JavaScript to scale an image to fit

    How do I center my responsive form and align it evenly with everything else?

    How to Stop Down Arrow on Scroll Bar from going off screen on page resize with CSS

    How to use CSS to create a dynamic corner frame?

    How to handle text wrapping in CSS? [duplicate]

    How do I show specific images from a get_children array in WordPress

    how i center div elements horizontally in css?

    CSS: How to shrink first div in container instead of going outside of container

    How to make the background DIV only transparent using CSS

    How can I prevent my button from being mangled?

    How to reverse a repeated image on blogger

    How to set Safari print margins via CSS to print borderless

    CSS: how to vertically and horizontally align an image?

    How to position two images in opposite corners of one div