correio25 Posted April 24, 2015 at 02:44 PM Report Share #581800 Posted April 24, 2015 at 02:44 PM Boas, Eu tenho um footer com position:fixed, height e width definidos. Dentro do <footer> está uma linha de texto. Para centrar, vert. e hor., a linha de texto, tive que colocá-la dentro de um <p></p> e atribuir o display:table ao <footer> e o display:table-cell ao <p>. Esta é a única maneira de fazer isto? Link to comment Share on other sites More sharing options...
N3lson Posted April 24, 2015 at 06:28 PM Report Share #581811 Posted April 24, 2015 at 06:28 PM https://css-tricks.com/quick-css-trick-how-to-center-an-object-exactly-in-the-center/ You can't do it, kid. But don't worry, my boy. You're not the only one. No one else can do it. Link to comment Share on other sites More sharing options...
Solution HappyHippyHippo Posted April 24, 2015 at 06:33 PM Solution Report Share #581812 Posted April 24, 2015 at 06:33 PM https://css-tricks.com/quick-css-trick-how-to-center-an-object-exactly-in-the-center/ que voltas para centrar texto ... <footer>Text</footer> footer { height: 50px; line-height: 50px; text-align: center; } IRC : sim, é algo que ainda existe >> #p@p Portugol Plus Link to comment Share on other sites More sharing options...
correio25 Posted April 28, 2015 at 11:23 AM Author Report Share #582037 Posted April 28, 2015 at 11:23 AM Obrigado Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now