CSS Place data in the center

Asked

Viewed 32 times

0

I’m using css to build tables and I want to put the data in the center and I’m not getting it.

CSS:

.tabla7 .columna7 {
 padding: 5px;
 height: 45px;
 float:left;width:89px;
 border-right: 1px solid #ccc;
 border-bottom: 1px solid #ccc;
  }

inserir a descrição da imagem aqui

  • 1

    You can use the vertical-align:middle;

  • 1

    I used it and it didn’t change anything.

  • You want to center the table content or the table relative to the page?

  • You have to remove the float:left;. jsfiddle

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.