![]() |
speed bar text colour
Hello
I have been trying to change the text colour of my speed bar for a while now and have given up. It has been modified a bit. I can get the vertical bars to change colour, but unfortunately the text will not change from black. TOP_MENU.TPL Code:
{if $printable ne ''} TAB.TPL Code:
<table border="0" cellpadding="0" cellspacing="5"> Relevant CSS Code:
.TabBar { |
Re: speed bar text colour
Quote:
You tried the SECOND color bit in the css above? ie. .TabFont { .COLOR: #ffffff; |
Hello Bella Forma
Yeah it does not matter which one I pick, it still does not change the font colour, the font size for the speedbar changes via these CSS entries no problems, it seems as though its not even going to CSS for the text colour. |
Hiya Adam
Ok two small things it could be. First one... take the . (dots) out of the class definition in TAB.tpl ie remove these: <td class=" . TabFont" align=center><FONT class=" . TabFont">{$tab_title}</FONT>|</td> I don't think (not 100% sure) that's the right syntax for it, my money's on the dots ;) Second your CSS code looks nested/missing a bracket (is that deliberate or just a typo?). No idea if nested is possible but try using this instead. Code:
.TabBar { |
Hi Bella Forma
I tried what you advised and the text is still staying black. this is how the files look now, incase I did it wrong, or you can see something else. With the top menu tpl file, there is a reference to a tab title here Code:
tab_title="<A href=\"`$speed_bar[sb].link`\">`$speed_bar[sb].title`</A>"}</TD> Just wanted to make sure this has nothing to do with the text in the tabs. Thanks for your help CSS Code:
TEXT-TRANSFORM: uppercase; Tabs.tpl Code:
<table border="0" cellpadding="0" cellspacing="5"> Top menu tpl Code:
{if $printable ne ''} |
I don't think there is anything wrong with your code.. well not that I can see.
I had a quick go on my site and got the same problem as you, the CSS doesn't want to change the text colour. There must be some 'magic' setting somewhere.... I think you need a guru!!! |
Thanks for trying anyway.
I'm just about to start doing a course on css, so I may be able to solve it myself soon. Regards Adam |
mrbiggles, when you are learning CSS, the important thing to remember is the "cascading" in "cascading style sheets".
That means that there is a cascade of importance in the style rules and it may well be that you have written a rule elsewhere that overrides your class. To take an example, let's say that you had a #header ID controlling the speedbar container and that you had made a rule {color: #000;}. In this case, making the td a class of .tabfont {color: #fff;} wouldn't change it, because you have already been specific and said: "I want all color within #header to be black." What would change it is if you made a rule: #header td.tabfont {color: #fff;}, which now says: "I want all the table cells within the header container which have the class of tabfont to be white." Anyway, may be something to check - enjoy the CSS classes! To make a great oversimplification, the cascade normally runs from the general to the specific... |
I don't know if you already fixed, but in my computer is showing in blue. In order to fixed, you have to change the color in class="maincontent" in the css file. I hope that help.
ps: sometimes when everything fails, I add a language statement, and change the colors using html inside the statement. |
In case anyone was still having this problem and needs an answer. ...
You must change the link properties in .Tab .tab a, .tab a:link, .tab a:visited { |
All times are GMT -8. The time now is 05:27 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.