View Full Version : Category Font Problem
jfiler
Jan-20-2009, 06:41 PM
Have the following code to control the font on labels for the categories (Birds, Landscapes, etc) and it works for changes to color but not font or font size. Must be something simple but just can't find a thread with an answer.
.miniBox a.nav {
font-family: Century Gothic, Arial, Myriad Pro;
font-size: 13px;
font-weight: normal;
color: #FFF;
)
jfiler
www.photographsbynature.com (http://www.photographsbynature.com)
jfriend
Jan-20-2009, 06:52 PM
I'm not sure I understand exactly which page you are having trouble with (a link to that exact page would help). In some cases your rules are not taking affect because there is a more specific rule in force from elsewhere in the CSS (either generic smugmug or the theme)
.miniBox .albumTitle a.nav will trump minibox a.nav because it's more specific.
To give your rules priority, add a !important to the ones that aren't working like this:
/* set font on categories */
.miniBox a.nav {
font-family: Century Gothic, Arial, Myriad Pro;
font-size: 13px !important;
font-weight: normal;
color: green;
)
That will give them priority, regardless of how specific they are.
jfiler
Jan-20-2009, 07:54 PM
I'm not sure I understand exactly which page you are having trouble with (a link to that exact page would help). In some cases your rules are not taking affect because there is a more specific rule in force from elsewhere in the CSS (either generic smugmug or the theme)
.miniBox .albumTitle a.nav will trump minibox a.nav because it's more specific.
To give your rules priority, add a !important to the ones that aren't working like this:
/* set font on categories */
.miniBox a.nav {
font-family: Century Gothic, Arial, Myriad Pro;
font-size: 13px !important;
font-weight: normal;
color: green;
)
That will give them priority, regardless of how specific they are.
Not having much luck here. Changed the code to the following as suggested.
/* set font on categories */
.miniBox albumTitle a.nav {
font-family: Century Gothic, Arial, Myriad Pro !important;
font-size: 14px !important;
font-weight: normal;
color: #FFF;
}
Trying to change the font under the category photos on http://www.photographsbynature.com/galleries to look like they do under the gallery photos on http://www.photographsbynature.com/Birds
Where am I going wrong?
jfiler
www.photographsbynature.com (http://www.photographsbynature.com)
jfriend
Jan-20-2009, 08:10 PM
Not having much luck here. Changed the code to the following as suggested.
/* set font on categories */
.miniBox albumTitle a.nav {
font-family: Century Gothic, Arial, Myriad Pro !important;
font-size: 14px !important;
font-weight: normal;
color: #FFF;
}
Trying to change the font under the category photos on http://www.photographsbynature.com/galleries to look like they do under the gallery photos on http://www.photographsbynature.com/Birds
Where am I going wrong?
jfiler
www.photographsbynature.com (http://www.photographsbynature.com)
Missing a period in front of albumTitle:
/* set font on categories */
.miniBox .albumTitle a.nav {
font-family: Century Gothic, Arial, Myriad Pro !important;
font-size: 14px !important;
font-weight: normal;
color: #FFF;
}
jfiler
Jan-21-2009, 08:39 AM
Missing a period in front of albumTitle:
/* set font on categories */
.miniBox .albumTitle a.nav {
font-family: Century Gothic, Arial, Myriad Pro !important;
font-size: 14px !important;
font-weight: normal;
color: #FFF;
}
Thanks for the help, that did the trick!
jfiler
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.