A Pen by MartijnCuppens on CodePen.
Created
July 9, 2018 03:18
-
-
Save robbieferrero/b8b2dd21348b4bcd3d1134ff363c8fa7 to your computer and use it in GitHub Desktop.
The div that look different in every browser
This file contains 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 characters
<div></div> |
This file contains 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 characters
// Browser screenshot see https://twitter.com/Martijn_Cuppens/status/1015169981368225793 | |
// Struggling with responsive font sizes? Check out RFS: https://github.com/MartijnCuppens/rfs |
This file contains 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 characters
html { | |
display: table; | |
height: 100%; | |
width: 100%; | |
} | |
body { | |
display: table-cell; | |
vertical-align: middle; | |
} | |
div { | |
margin: auto; | |
width: 100px; | |
height: 100px; | |
outline: inset 100px green; | |
outline-offset: -125px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment