Template:MainPageBanner/styles.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
width: 100%; | width: 100%; | ||
display: flex; | display: flex; | ||
justify-content: space-between; | justify-content: space-between; /* Ensures left and right sections are on opposite sides */ | ||
gap: 20px; | gap: 20px; /* Adds space between the two sections */ | ||
margin-top: 15px; | margin-top: 15px; | ||
} | } | ||
.mp-section { | .mp-section { | ||
width: 48%; /* | width: 48%; /* Ensures the sections take up equal width */ | ||
padding: 10px; | padding: 10px; | ||
background-color: #f9f9f9; | background-color: #f9f9f9; |
Revision as of 19:49, 2 January 2025
/* General styles for sections */ #mp-topbanner { background-color: #f4f4f4; padding: 15px; border: 1px solid #ccc; margin-bottom: 10px; } #mp-welcomecount { text-align: center; } #mp-welcome h1 { font-size: 2em; font-weight: bold; } #mp-free { font-size: 1.2em; margin-top: 5px; } #articlecount { font-size: 1.1em; color: #333; margin-top: 10px; } #mp-banner { background-color: #e7f7fc; padding: 15px; border: 1px solid #8a8a8a; margin-top: 15px; } /* Sections Layout */ #mp-container { width: 100%; display: flex; justify-content: space-between; /* Ensures left and right sections are on opposite sides */ gap: 20px; /* Adds space between the two sections */ margin-top: 15px; } .mp-section { width: 48%; /* Ensures the sections take up equal width */ padding: 10px; background-color: #f9f9f9; border: 1px solid #ccc; box-sizing: border-box; } /* Stats Box */ #mp-stats { clear: both; padding: 15px; background-color: #e7f7fc; border: 1px solid #8a8a8a; margin-top: 20px; text-align: center; }