Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change color of footer?

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!

like image 246
Maxx Brixner Avatar asked Jul 15 '16 01:07

Maxx Brixner


People also ask

How do I change the background color of a footer in Word?

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.

How do I change the footer color in HTML?

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).

How do I make the footer a different color line?

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.

How do I change the color of a footer in Word for Mac?

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.


2 Answers

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">
like image 98
egor.zhdan Avatar answered Sep 25 '22 13:09

egor.zhdan


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>
like image 34
Angel Politis Avatar answered Sep 25 '22 13:09

Angel Politis