Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Grid laying next to each other #302

Closed
josleow opened this issue Mar 2, 2014 · 6 comments
Closed

Issue: Grid laying next to each other #302

josleow opened this issue Mar 2, 2014 · 6 comments

Comments

@josleow
Copy link

josleow commented Mar 2, 2014

Two grids (pure-u-1-2) staying inside pure-g should lay next to each other; only Firefox for most grids has different layout as Chrome and Safari. I have one grid at the last floating right. Had to cheat by using firefox hack to reduce width from 50% to 49%. In a long run, it might not be good. I would like to know if there is any other solution? Thanks

@hidegh
Copy link

hidegh commented Mar 2, 2014

Hi, i've posted a new comment to: #301

Please try to set font-size: 0.01% on the .pure-g anf font-size: 1 rem on the RESET-class. Probably this will solve your problem. Use any NOT 0 size font size if you need cross-browser compatibility.

Please let us know if this solved your issue.

@ericf
Copy link
Collaborator

ericf commented Mar 2, 2014

@josleow can you please provide the most simplified HTML and CSS example code that shows the issue?

@abondis
Copy link

abondis commented Aug 29, 2014

I think I have the same issue, with the following code. I might have missed something basic, but I followed the 'getting started' page (even on this page the example with the three 1-3 columns shows the last one on another line)
Tried on firefox 31.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.5.0/pure-min.css">
  </head>
  <body>
    <div class="pure-g">
      <div class="pure-u-1-3"><p>Thirds</p></div>
      <div class="pure-u-1-3"><p>Thirds</p></div>
      <div class="pure-u-1-3"><p>Thirds</p></div>
    </div>
  </body>
</html>

@tilomitra
Copy link
Contributor

@abondis Tried the code above on FireFox 31 on OSX and it looks fine to me. Here's the JSBin.

@abondis
Copy link

abondis commented Sep 9, 2014

@tilomitra I still have the issue, but it seems it's specific to me, and when I unzoom from 100% to 90% it's working correctly.

@jamesalley
Copy link
Contributor

I've seen a couple examples where a particular zoom level caused grids to render wrong (one box would overflow from the edge of the grid to the next line) in Firefox/Win. I observed this happening at different zoom levels: in one instance, when zooming in a stop; in another, when zooming out two stops. No other browsers, including Mac Firefox, were affected. Reducing the pure-u-1-3 value from 33.3333% to 33.3%, or performing a similar tiny fractional reduction of width, solved the problem. But I don't want to compromise the correct math in Pure to accommodate an occasional render flub for a particular zoom level in a particular browser on a particular platform; it's an edge case. But if you're worried about it, try reducing the width of your pure-u-* units by a tiny amount.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants