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 u-center-block alignment is broken #49
Comments
Maybe I should add this to docs but you need to give the block some height... |
Added some doc help text...if you want to re-open this issue feel free 👍 |
Okay, just tried your suggestion html:
main.css:
well, what if i try like this: main.css:
looks little bit better ;) Maybe i do something wrong? |
.u-center-block {
height: 100%
} doesn't really work, if the div doesn't have measurable height (which it doesn't have in this context). Here's a quick example how you could use it. |
Unfortunately, this one works perfect for some blocks, but not for entire page. |
Try this: <body>
<div class="u-center-block__content">Hello Blaze</div>
</body> Would you like this to be a separate feature?
|
Thanks, this one works like a charm.
Yes, this makes sense. Also i think this example needs to be added in docs. |
When i use code like:
i get something like on this screenshot
tested in Chromium 51 and Firefox 47 / Arch Linux
The text was updated successfully, but these errors were encountered: