Answers for "how to bring a text in middle center of a tile css in anchor tag inline elements"

CSS
0

how to bring a text in middle center of a tile css in anchor tag inline elements

a,button {
    width: 150px;
    height: 150px;
    border: 1px solid #000;
    text-align: center;
}

a {
    display: table;
    -moz-box-sizing: border-box;
}

a span, button span {
    vertical-align: middle;
    text-align: center;
}

a span {
    display: table-cell; 
}
Posted by: Guest on December-08-2020
0

how to bring a text in middle center of a tile css in anchor tag inline elements

a,button {
  display: inline-block;
  -moz-box-sizing: border-box;
  width: 150px;
  height: 150px;
  vertical-align: middle;
  border: 1px solid #000;
  text-align: center;
}
Posted by: Guest on December-08-2020

Code answers related to "how to bring a text in middle center of a tile css in anchor tag inline elements"

Browse Popular Code Answers by Language