Skip to content

Instantly share code, notes, and snippets.

@juanibrex
Created November 14, 2015 03:13
Show Gist options
  • Save juanibrex/947e7eff92adfafe4ae4 to your computer and use it in GitHub Desktop.
Save juanibrex/947e7eff92adfafe4ae4 to your computer and use it in GitHub Desktop.
Centrar un elemento absolutamente respecto a su padre
.padre{
position: relative;
}
.padre .hijo{
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment