-
AuthorPosts
-
January 21, 2016 at 12:54 pm #757341
elise83ParticipantHi,
I’m using WP 4.4.1.
I tried to change the size and font of my skill bars. Being a beginner in CSS, I tried something but it didn’t work…
.h-skill-bar {
color: #231F20;
font-family: Lato, Sans-serif;
font-size: 18px;
border: none;
}Let me know the right CSS short code!
Thanks!
January 21, 2016 at 9:02 pm #758071
FriechModeratorHi There,
Thanks for writing in! Add a
bodyto the selector of your custom csse.g.
body .h-skill-bar { font-size: 18px; font-family: lato; }If this didn’t work, please provide us the site URL.
Hope it helps, Cheers!
January 22, 2016 at 4:36 am #758695
elise83ParticipantThanks for your answer 🙂
I would like to
1) change the text in small caps
2) Increase size of percentage.What should I add to this CSS?
body .h-skill-bar {
color: #231F20;
font-family: Lato, Sans-serif;
font-size: 18px;
border: none;
}Thanks!
January 22, 2016 at 7:37 am #758885
DarshanaModeratorHi there,
To increase the size of percentage, you can use the following CSS rule.
.x-skill-bar { height: 30px; }To change the font size, you can use the following CSS.
.h-skill-bar { font-size: 18px; }Hope that helps.
January 22, 2016 at 9:38 am #759130
elise83ParticipantHi, the two of them don’t work.
1)
.x-skill-bar {
height: 30px;
}
This increases the size of the bar itself and not the percentage. What I want is to increase the size of the text, i.e. ”50%’.2)
.h-skill-bar {
font-size: 18px;
}This doesn’t change anything, what I wanna change is the capital letters. I want small caps.
Hope I was clear.
Thanks and cheers
January 22, 2016 at 10:01 pm #759948
FriechModeratorHi There,
Add this code to increase the text size of the percent number in the bar.
body .x-skill-bar .bar .percent { font-size: 150%; }Not sure what do you mean by small caps. In CSS you only have four option to transform a text, those are none, capitalize, uppercase, lowercase.
body .h-skill-bar { text-transform: none; }Change the none value to desired look.
Hope it helps, Cheers!
January 23, 2016 at 5:33 am #760303
elise83ParticipantPerfect, thanks!
January 23, 2016 at 8:46 pm #760996
Rue NelModeratorYou’re welcome!
We’re glad we were able to help you out. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-757341 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
