Created
June 1, 2014 04:00
-
-
Save kpman/c7b764a1ad0eedea57cc to your computer and use it in GitHub Desktop.
Revisions
-
kpman created this gist
Jun 1, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ element vertical center ----------------------- position the element vertical center with pure CSS skill from Front-End Developer Taiwan Group A [Pen](http://codepen.io/kpman/pen/ihdxG) by [kpman](http://codepen.io/kpman) on [CodePen](http://codepen.io/). [License](http://codepen.io/kpman/pen/ihdxG/license). This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ <div></div> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ div { margin: auto; width: 100px; height: 100px; top: 0; left: 0; right: 0; bottom: 0; position: absolute; /* important */ background: DodgerBlue; }