Reputation: 58662
I have my carousel look like this:
I couldn't get my labels to display properly.
Here is how I create one of my box :
<div class="tl-box-wrapper">
<div class="tl-box">
<div class="tl-top"> <i class="fa fa-circle yellow"></i>
</div>
<div class="tl-bot"> <i class="fa fa-circle yellow"></i>
</div>
<div class="tl-right">Yellow</div>
</div>
</div>
As you can see, I create my label in here:
<div class="tl-right">Yellow</div>
I'm not sure why Yellow is not showing.
Can someone tell me what I missed? My whole code is in this Fiddle.
Upvotes: 0
Views: 1641
Reputation: 2405
Your text isn't showing because .mp-carousel #mp-carousel-overflow
is setting your font-size
to 0. You can add font-size:14px
to .tl-right
to fix this.
https://jsfiddle.net/mxwjtjxw/10/
Upvotes: 2
Reputation: 12327
Edit your css with the following:
.tl-right {
width:80%;
height:100%;
display: table-cell;
vertical-align: middle;
text-align: center;
// ADD THIS
font-size:20pt;
}
see the fiddle i made
Your code at .mp-carousel #mp-carousel-overflow contains font-size: 0pt which basicly means that your font is invisible.
Upvotes: 4