Skip to content

Instantly share code, notes, and snippets.

@aoeuidht
Forked from zhuangya/index.jade
Created February 17, 2014 10:12
Show Gist options
  • Save aoeuidht/9048023 to your computer and use it in GitHub Desktop.
Save aoeuidht/9048023 to your computer and use it in GitHub Desktop.
.big-wrapper
.notice
pre
code vertical-align: middle
br
| for IE 7+
style
:stylus
.big-wrapper
margin auto
width 100%
height 100%
outline 1px solid skyblue
background-color #f8f8f8
color #333
text-align center
&:before
display inline-block
height 100%
vertical-align middle
content '\0020'
.notice
display inline-block
vertical-align middle
width 200px
background-color rgba(0, 0, 0, .88)
padding 10px
color #f8f8f8
@aoeuidht
Copy link
Author

to vertical algin an unknown element.

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