#maincontent{ background-image: url(../images/bgwire.png); position: relative; min-height: 3000px; } h1{ color: #FFD209; z-index: 2; } h2{ color: #FFD209; z-index: 2; } .absolute{ position: absolute; color: #FFD209; font-size: 1.3rem; padding: 1%; background-color: rgba(0, 0, 0, 0.582); } .commstext{ color: #FFD209; font-size: 1.3rem; padding: 1%; background-color: rgba(0, 0, 0, 0.582); z-index: 2; width:fit-content } .container{ position: relative; width: 100%; text-align: center; background-color: rgba(0, 0, 0, 0.288); } .commsimage{ width: 100%; } .contactmetext{ font-size: 5rem; } #maincontent{ width: 65%; } /*Undersize.*/ @media only screen and (max-width: 800px) { .absolute{ font-size: 1rem; } .commstext{ font-size: 1rem; } .contactmetext{ font-size: 3rem; } #maincontent{ width: 100%; } }