Last active
January 11, 2019 22:08
-
-
Save gaalha/ffe3ef581bc405a4093e2532e342b5b4 to your computer and use it in GitHub Desktop.
Distintas formas de centrar un elemento en html.
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
/*1.-*/ .center {display: block; margin: auto;} //Se aplica al elemento que deseas centrar. | |
/*2.-*/ .center {text-align: center;} //Se aplica al padre. | |
/*3.-*/ .center {margin: 0px auto;} //Se aplica al padre. | |
/*4.-*/ .text-center {text-align: center;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment