Skip to content

CSS code snippet – How to bring a text in middle center of a tile 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; 
See also  PHP code snippet - How to keep some value on input field?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.