MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
Line 4: Line 4:
     width: 100%;
     width: 100%;
     height: auto;
     height: auto;
    display: block; /* Ensure image behaves as a block for centering */
    margin: 0 auto; /* Center the image horizontally */
}
}


Line 20: Line 22:
}
}


/* Default table cell behavior */
/* Center content in table cells */
.eras-table td {
.eras-table td {
     vertical-align: top;
     vertical-align: top;
    text-align: center; /* Center the text under the image */
    padding: 10px; /* Add some padding for spacing */
}
}


Line 47: Line 51:
         flex: 0 0 33.333%; /* 3 columns */
         flex: 0 0 33.333%; /* 3 columns */
         box-sizing: border-box;
         box-sizing: border-box;
        text-align: center; /* Ensure text stays centered in flex layout */
         padding: 10px;
         padding: 10px;
     }
     }
}
}