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

Vertical alignment with valign appears to be broken #264

Open
Toddses opened this issue Apr 1, 2015 · 0 comments
Open

Vertical alignment with valign appears to be broken #264

Toddses opened this issue Apr 1, 2015 · 0 comments

Comments

@Toddses
Copy link

Toddses commented Apr 1, 2015

Using the class valign as shown in the docs does not work as expected. You end up with a div locked at 400px height, and some other properties which makes things crazy.

I took at look at the CSS being used on the site and compared it to the compiled CSS from the repo. They're different.

On the site:

.valign {
  display: table;
  width: 100%;
}
.valign > div, .valign > article, .valign > section, .valign > figure {
  display: table-cell;
  vertical-align: middle;
}

In the repo:

.valign:before {
  content: ' ';
  display: inline-block;
  height: 400px;
  vertical-align: middle;
  margin-right: -0.25em;
}
.valign > div, .valign > article, .valign > section, .valign > figure {
  display: inline-block;
  vertical-align: middle;
}
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

1 participant