Skip to content

Browser zooming #91

@generatepress

Description

@generatepress

Had a user of my theme complain that they were losing the grid when zoomed in 125% at a certain browser width.

For example, if you zoom in 125% in Chrome 52.0.2743.116 m and resize the browser so it's at the exact pixel before the regular grid turns into the tablet grid (min-width: 1025px in my case), no grid applies for that 1px.

This doesn't happen at regular zoom, it goes from min-width:1025px to max-width:1024px flawlessly.

It only happens when zoomed in.

If I switch it to max-width:1024.9px, it works fine.

I'm assuming the browser is adding decimal points to the width, which is causing the issue.

Is there a better way around this? Maybe there's something logically wrong with my code?

Here's an example of what I'm doing: http://codepen.io/tomusborne/pen/dXaxOj

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions