0

I'm been trying to do this is many different ways: with flex box, table-cell, boot-strap, just html/css. But I am not being able to get in to the result I wish. I am not sure if I'm forgetting something really simple.

Here is two of my tries

What could be a solution to: center all the elements inside the footer (vertically and horizontally) and leave a nice space in the top and bottom (over the progress bar and under the text) between the elements and the footer border and between the elements themselves.

.footer style="position: fixed; left: 0; bottom: 0; width: 100%; background-color: #000000; text-align: center;"
  .col-md-12
    .progress style="height: 20px;"
      .progress-bar [
        role="progressbar"
        style="width:100%; background: #5bc0de;"
      ]
        span style="display: block; position: absolute; width: 98%; color: #FFFFFF; font-weight: bold;"
          div
            | 50/100%
  br
    span align="center" style="display: block; position: absolute; width: 100%; color: #FFFFFF;"
      | This is my text

Here is the code with Boostrap

.navbar.navbar-fixed-bottom.center style="background-color: #000000; text=align: center;"
  .container style="display:inline-block float:none"
    .row
      .col-md-12
        .progress style="background: #f382f234; height: 20px;"
          .progress-bar [
            role="progressbar"
            style="width:50%; background: #5bc0de;"
          ]
            span style="display: block; position: absolute; width: 98%; color: #FFFFFF; font-weight: bold;"
              div
                | 20/100
    .row
      .col-md-12 align="center"
        span style="display: block; position: absolute; width: 96%; color: #FFFFFF;"
          | This is the tex

I am not really sure if this kind of question should be posted here, so I'm sorry if it's misplaced.

Matheus Oliveira
  • 587
  • 3
  • 10
  • 33
  • [Stackoverflow - Center Text on Progress Bar](https://stackoverflow.com/questions/12937470/twitter-bootstrap-center-text-on-progress-bar) or [Here](https://jsfiddle.net/w8zdkhs8/) – Calvin Ananda Nov 07 '17 at 22:50
  • The question is about the whole progress bar in the footer. The inner text is okay – Matheus Oliveira Nov 07 '17 at 23:06

0 Answers0