Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS RE: Text not centered in Div Cell Reply To: RE: Text not centered in Div Cell

#252970
Mottie
Member

@motion2082 Have you see this article? https://css-tricks.com/centering-in-the-unknown/

Newer methods use flexbox:

http://codepen.io/Mottie/pen/GWQQeL

div {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}