I am working on updating my CSS style sheet so that my header element will have the background color of #2a607c
and text color of #ffffff
and I have tried so many combinations trying to get it to reflect on the webpage and I just cannot seem to figure out what I am doing wrong. The following is my css style sheet and html file:
* { box-sizing: border-box; padding: 0; margin: 0;}body { background-color: #d9dcd6;}.header { padding: 20px; font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; background-color: #2a607c; color: #ffffff;}.header h1 { display: inline-block; font-size: 48px;}.header h1 .seo { color: #d9dcd6;}.header div { padding-top: 15px; margin-right: 20px; float: right; font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; font-size: 20px;}.header div ul { list-style-type: none;}.header div ul li { display: inline-block; margin-left: 25px;}a { color: #ffffff; text-decoration: none;}p { font-size: 16px;}.hero { height: 800px; width: 100%; margin-bottom: 25px; background-image: url("https://static.bc-edx.com/coding/full-stack/01-HTML-Git-CSS/assets/digital-marketing-meeting.jpg"); background-size: cover; background-position: center;}.float-left { float: left; margin-right: 25px;}.float-right { float: right; margin-left: 25px;}.content { width: 75%; display: inline-block; margin-left: 20px;}.benefits { margin-right: 20px; padding: 20px; clear: both; float: right; width: 20%; height: 100%; font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; background-color: #2589bd;}.benefit-lead { margin-bottom: 32px; color: #ffffff;}.benefit-brand { margin-bottom: 32px; color: #ffffff;}.benefit-cost { margin-bottom: 32px; color: #ffffff;}.benefit-lead h3 { margin-bottom: 10px; text-align: center;}.benefit-brand h3 { margin-bottom: 10px; text-align: center;}.benefit-cost h3 { margin-bottom: 10px; text-align: center;}.benefit-lead img { display: block; margin: 10px auto; max-width: 150px;}.benefit-brand img { display: block; margin: 10px auto; max-width: 150px;}.benefit-cost img { display: block; margin: 10px auto; max-width: 150px;}.search-engine-optimization { margin-bottom: 20px; padding: 50px; height: 300px; font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; background-color: #0072bb; color: #ffffff;}.online-reputation-management { margin-bottom: 20px; padding: 50px; height: 300px; font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; background-color: #0072bb; color: #ffffff;}.social-media-marketing { margin-bottom: 20px; padding: 50px; height: 300px; font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; background-color: #0072bb; color: #ffffff;}.search-engine-optimization img { max-height: 200px;}.online-reputation-management img { max-height: 200px;}.social-media-marketing img { max-height: 200px;}.search-engine-optimization h2 { margin-bottom: 20px; font-size: 36px;}.online-reputation-management h2 { margin-bottom: 20px; font-size: 36px;}.social-media-marketing h2 { margin-bottom: 20px; font-size: 36px;}.footer { padding: 30px; clear: both; font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; text-align: center;}.footer h2 { font-size: 20px;}
<div class="header"><header><h1>Hori<span class="seo">seo</span>n</h1></header><div><aside><nav><ul><li><a href="#search-engine-optimization">Search Engine Optimization</a></li><li><a href="#online-reputation-management">Online Reputation Management</a></li><li><a href="#social-media-marketing">Social Media Marketing</a></li></ul></nav></aside></div></div><main><div class="hero"></div><div class="content"><section><div class="search-engine-optimization"><img src="https://static.bc-edx.com/coding/full-stack/01-HTML-Git-CSS/assets/search-engine-optimization.jpg" class="float-left" alt="desk with laptop, notebook and coffee cup." /><h2>Search Engine Optimization</h2><p> The dominance of mobile internet use means that users are searching for the right business as they travel, shop, or sit on their couch at home. Search Engine Optimization (SEO) allows you to increase your visibility and find the right customers for your business.</p></div></section><section><div id="online-reputation-management" class="online-reputation-management"><img src="https://static.bc-edx.com/coding/full-stack/01-HTML-Git-CSS/assets/online-reputation-management.jpg" class="float-right" alt="person sitting at a laptop with their cell phone out" /><h2>Online Reputation Management</h2><p> The web is full of opinions, and some of these can be negative. Social media allows anyone with an internet connection to say whatever they want about your business. Online Reputation Management gives you the control over what potential customers see when they search for your business.</p></div></section><section><div id="social-media-marketing" class="social-media-marketing"><img src="https://static.bc-edx.com/coding/full-stack/01-HTML-Git-CSS/assets/social-media-marketing.jpg" class="float-left" alt="people around a table sharing ideas" /><h2>Social Media Marketing</h2><p> Social media continues to have a sizable influence on buying habits. Social media marketing helps you determine which platforms are suited to your brand, using analytics to find the right markets and increase your lead generation.</p></div></section></div><div class="benefits"><section><div class="benefit-lead"><h3>Lead Generation</h3><img src="https://static.bc-edx.com/coding/full-stack/01-HTML-Git-CSS/assets/lead-generation.png" alt="arrow pointing down at money symbol" /><p> Inbound strategies for lead generation require less work for your business, bringing customers directly to your website.</p></div></section><section><div class="benefit-brand"><h3>Brand Awareness</h3><img src="https://static.bc-edx.com/coding/full-stack/01-HTML-Git-CSS/assets/brand-awareness.png" alt="person with lightbulb head" /><p> Users find your business through paid and organic searches, increasing the search ranking and visibility for your business.</p></div></section><section><div class="benefit-cost"><h3>Cost Management</h3><img src="https://static.bc-edx.com/coding/full-stack/01-HTML-Git-CSS/assets/cost-management.png" alt="gear with money symbols in front of it" /><p> As the search ranking for your business increases, your advertising costs decrease, and you no longer need to advertise your page.</p></div></section></div></main><div class="footer"><footer><h2>Made with ❤️️ by Horiseon</h2><p>© 2024 Horiseon Social Solution Services, Inc.</p></footer></div>
I have tried updating background-color under .header and .header h1 multiple times, adding height and width. Nothing is working. Can someone help me out or explain adding background color and text color to me. I am a beginner.