-1

Style every BUTTON in the FOOTER to have a white color

footer {
  width: calc(100% - 2em);
  z-index: 500;
  position: absolute;
  bottom: 0;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  margin: 0 1em;
}
<footer>
  <button class="mdc-icon-button material-icons" id="btn-address">Address</button>
  <button class="mdc-icon-button material-icons" id="btn-phone">phone</button>
  <button class="mdc-icon-button material-icons" id="btn-birthday">Birthday</button>
</footer>
mplungjan
  • 169,008
  • 28
  • 173
  • 236
Daniel Ibanga
  • 59
  • 1
  • 9
  • Please guys, i have limited hours left. helppp. i have included color:white; to my css footer class, still prompts its isnt correct. what should i please do? – Daniel Ibanga Apr 10 '19 at 11:40
  • 2
    Seems like you just want nesting. Css: `footer button { color: white; }` Could you elaborate otherwise? – Amunium Apr 10 '19 at 11:41
  • 2
    Please do not beg. We will answer if we understand the question – mplungjan Apr 10 '19 at 11:41
  • okay guys, here's the whole code – Daniel Ibanga Apr 10 '19 at 11:45
  • – Daniel Ibanga Apr 10 '19 at 11:48
  • Please update the snippet instead of posting code in a comment!!. Also include `` – mplungjan Apr 10 '19 at 11:48
  • It's not clear to me what you want colored white. The button's background? The button's label? The icons inside the buttons? Can you elaborate? – Donkey Shame Apr 10 '19 at 11:53

4 Answers4

1

footer {
  width: calc(100% - 2em);
  z-index: 500;
  position: absolute;
  bottom: 0;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  margin: 0 1em;
}

footer button{
  color: #fff;
  background: #ff0000;
  border-radius: 5px; 
  border: 1px solid #ff0000;
  padding: 3px 10px;
}
<footer>
  <button class="mdc-icon-button material-icons" id="btn- 
          address">Address</button>
  <button class="mdc-icon-button material-icons" id="btn- 
          phone">phone</button>
  <button class="mdc-icon-button material-icons" id="btn- 
          birthday">Birthday</button>
</footer>
Arthur
  • 47
  • 4
0

Add this property in your style tag

footer button{
    color: #fff;
}
Kousik
  • 465
  • 3
  • 15
0

Define a CSS Class

.button {
display: block;
width: 115px;
height: 25px;
background: #4E9CAF;
padding: 10px;
text-align: center;
border-radius: 5px;
color: white;
font-weight: bold;
}

and include class for the Buttons inside < footer > tag

For more Info Trying Reading Styling an anchor tag to look like a submit button

  • all of these answers are correct. but i do not know what plugin Andela uses. the buttons have all changed to white but i can't pass this present stage. – Daniel Ibanga Apr 10 '19 at 11:55
0
footer button {
    background-color: white
}

color will define the color of the text in the button, but it sounds like you want the button itself to be white.

MTL-VRN
  • 393
  • 1
  • 14