Reputation: 8970
I am using bootstrap 3 and the progress bar to show a ranking on a leaderboard.
Is there a way to customize this to not have it show the "Out of" part?
For example, its technically not progress to complete something, its just a rank that will be shown in the same manner. So really i just wanna be able to remove the box that its filling in but also make it so its round on the right side as well.
Here is what I am trying to accomplish
As a side question, any idea how to remove the padding on the div the progress bar is in so it aligns in the middle like the other content?
Upvotes: 4
Views: 5767
Reputation: 19212
Just override the bootstrap .progress class styles:
.progress {
background-color: transparent;
border-radius: 0px;
-webkit-box-shadow: none;
box-shadow: none;
}
.progress-bar {
border-radius: 4px;
}
Make sure you do not alter the bootstrap.css file directly, just add the above style to your site.css file which should always come after bootstrap.css in any project so you can override bootstrap default styles for that custom look.
Upvotes: 1
Reputation: 164742
.progress {
background-color: transparent;
box-shadow: none;
-webkit-box-shadow: none;
}
table .progress {
margin-bottom: 0;
}
.progress-bar {
border-radius: 4px;
}
See demo here (thanks Ohgodwhy) - http://jsfiddle.net/r4zkv/4/
Upvotes: 4