I'm new to HTML and CSS and can't figure out how I change the color of the footer that is found at http://materializecss.com/footer.html. Any help would be awesome, thanks!
Go to the Design tab. Click Customize to expand the set of choices for customizing your theme. Click Header Image to choose an image to be the background of the header. Click Header background to choose a color for the header section.
Go to the Code Editor (in the Site Editor, click on Theme in the top menu navigator then click the "Edit HTML/CSS" button at the bottom of the left-hand sidebar).
Open the document, click Insert→Header and Footer. At the footer, click Page Layout→Page Borders. 2. In the pop-up Borders and Shadinginterface, click the Bordersbox, select Style, Color, and Width, and apply them to Paragraph.
If you want to change the color of the footer with the hyperlink to other colors, you can go the Ribbon bar above and change from font color by selecting the context. Then the color should be changed.
If you want to use one of the Materialize colors, you can simply add red
/ orange
/ teal
to your footer
classes like this:
<footer class="page-footer pink lighten-1">
The class containing the colouring information about the footer is page-footer
, so you can change the colour as shown below:
<style>
.page-footer {
background-color: blue;
}
</style>
Additionally you can set an ID
to the footer and overwrite the existing settings, as shown:
HTML:
<footer id = "myFooter">...</footer>
CSS (inline):
<style>
#myFooter {
background-color: blue;
}
</style>
If the above doesn't work, try using !important
to force the change like so:
<style>
#myFooter {
background-color: blue !important;
}
</style>
Check out this fiddle and the snippet below to see a live demonstration:
#myFooter {
background-color: blue;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/css/materialize.min.css" rel="stylesheet" type="text/css" />
<footer id="myFooter" class="page-footer">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Footer Content</h5>
<p class="grey-text text-lighten-4">You can use rows and columns here to organize your footer content.</p>
</div>
<div class="col l4 offset-l2 s12">
<h5 class="white-text">Links</h5>
<ul>
<li><a class="grey-text text-lighten-3" href="#!">Link 1</a>
</li>
<li><a class="grey-text text-lighten-3" href="#!">Link 2</a>
</li>
<li><a class="grey-text text-lighten-3" href="#!">Link 3</a>
</li>
<li><a class="grey-text text-lighten-3" href="#!">Link 4</a>
</li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2014 Copyright Text
<a class="grey-text text-lighten-4 right" href="#!">More Links</a>
</div>
</div>
</footer>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With