Skip to content

Instantly share code, notes, and snippets.

@robbieferrero
Created July 9, 2018 03:18
Show Gist options
  • Save robbieferrero/b8b2dd21348b4bcd3d1134ff363c8fa7 to your computer and use it in GitHub Desktop.
Save robbieferrero/b8b2dd21348b4bcd3d1134ff363c8fa7 to your computer and use it in GitHub Desktop.
The div that look different in every browser
// Browser screenshot see https://twitter.com/Martijn_Cuppens/status/1015169981368225793
// Struggling with responsive font sizes? Check out RFS: https://github.com/MartijnCuppens/rfs
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