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

Clear Left on Automatic Rowas #11

Open
jsanglier opened this issue Oct 28, 2014 · 1 comment
Open

Clear Left on Automatic Rowas #11

jsanglier opened this issue Oct 28, 2014 · 1 comment

Comments

@jsanglier
Copy link

Hi

Having a lot of fun with your baby!

On the documentation for automatic rows in real life (or perhaps on the demo page) you might want to point out that with media queries, if you set one "clear:left" parameter in one query, you need to kill it off in the next one up.

So, Say you have two media queries with a box

@media only screen and (min-width: 30.063em) {
.box2 {
width: 33.33%;
}
.box2:nth-child(3n+1) {
clear: left;
}
}
@media only screen and (min-width: 64.063em) {
.box2 {
width: 20%;
}
.box2:nth-child(3n+1) {
clear: none;
}
.box2:nth-child(5n+1) {
clear: left;
}
}

In the larger one you need to clear:none the box2:nth-child(3n+1) other wise it will mess up your attempt at 5 columns!

I just spent an hour staring at the obvious wondering why it didn't work, so thought I would put it here for the next idiot like me!

@microcipcip
Copy link

Another related note about the documentation, on this page, the text: "The "clear: left" solution is not compatible with IE6 and IE7." is not accurate, the nth-child is not supported on IE8 too.

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

No branches or pull requests

2 participants