Created
August 10, 2013 20:05
-
-
Save blackfalcon/6201936 to your computer and use it in GitHub Desktop.
Revisions
-
blackfalcon revised this gist
Aug 12, 2013 . 2 changed files with 1 addition and 23 deletions.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 @@ -1,8 +0,0 @@ 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 @@ -14,18 +14,4 @@ top: 0 left: 0 bottom: 0 right: 0 -
blackfalcon revised this gist
Aug 11, 2013 . 2 changed files with 23 additions and 1 deletion.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 @@ div { width: 40%; height: 20%; left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%); } 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 @@ -14,4 +14,18 @@ top: 0 left: 0 bottom: 0 right: 0 div width: 40% height: 20% left: 50% top: 50% position: absolute transform: translate(-50%, -50%)
-
blackfalcon revised this gist
Aug 10, 2013 . 2 changed files with 1 addition and 14 deletions.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 @@ -1,10 +0,0 @@ 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 @@ -14,7 +14,4 @@ top: 0 left: 0 bottom: 0 right: 0 -
blackfalcon revised this gist
Aug 10, 2013 . 2 changed files with 22 additions and 1 deletion.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,10 @@ .block { width: 500px; height: 500px; margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; } 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 @@ -1,3 +1,11 @@ // ---- // Sass (v3.2.10) // Compass (v0.13.alpha.4) // ---- // http://coding.smashingmagazine.com/2013/08/09/absolute-horizontal-vertical-centering-css/ =absolute-center($width, $height) width: $width height: $height @@ -6,4 +14,7 @@ top: 0 left: 0 bottom: 0 right: 0 .block +absolute-center(500px, 500px) -
blackfalcon created this gist
Aug 10, 2013 .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,9 @@ =absolute-center($width, $height) width: $width height: $height margin: auto position: absolute top: 0 left: 0 bottom: 0 right: 0