ashkir Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/W9M-tej.gif) Posts: 1,159 Status: Offline Gender: Male Location: Cali! Age: 36 Joined:
pmskypemsnyahoo | Category Text CSS (21st Oct 08 at 4:49pm UTC) | | I cannot figure out how to change the color of the category titles, size and font with CSS:
.categorytitle { text-align: center; color: #94720A; nav-color: #94720A; font-size: 20px; font-family: Georgia; } | |
|
Nick Very Senior Member
    
![[Avatar]](http://uploads.vforums.co.uk/forums/support/f_5e7b1402b305d883af97446b2fedc6c2_1-eog.jpeg) Posts: 3,013 Status: Offline Gender: Male Location: vForums Age: 35 Joined:
pmwww | Re: Category Text CSS (21st Oct 08 at 5:16pm UTC) | | I know how to align it, but not color it. I could try to, Because I know it is more then what you have (I believe) If I can't do it, then Dwight can step in. | |
|
ashkir Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/W9M-tej.gif) Posts: 1,159 Status: Offline Gender: Male Location: Cali! Age: 36 Joined:
pmskypemsnyahoo | Re: Category Text CSS (21st Oct 08 at 5:17pm UTC) | | The align part works well. ^^
.categorytitle { text-align: center; } | |
|
Nick Very Senior Member
    
![[Avatar]](http://uploads.vforums.co.uk/forums/support/f_5e7b1402b305d883af97446b2fedc6c2_1-eog.jpeg) Posts: 3,013 Status: Offline Gender: Male Location: vForums Age: 35 Joined:
pmwww | Re: Category Text CSS (21st Oct 08 at 5:29pm UTC) | | edit:
I guess it does not work for the main boards title, but it does work like when you modify a header/footer or anything else in the admin panel. I will have to work more on this. Its close at least Well I got it fixed I know whats wrong
You have to have this:
 Code: - <script type="text/javascript">
- <!--
- /*Remove Link From Category Name by Danny*/
-
- var cat = document.getElementsByTagName('tr');
- for(e=0; e<cat.length; e++){
- if(cat[e].firstChild.className=='title2 categorytitle' && cat[e].firstChild.colSpan=='3'){
- cat[e].getElementsByTagName("a")[1].removeAttribute("href");
- cat[e].getElementsByTagName("font")[0].removeAttribute("size");
- }
- }
-
- // -->
- </script>
-
This removes the link from the category title, which makes the CSS work.
 Code: - <style type="text/css">
- .categorytitle {
- text-align: center;
- color: #94720A;
- nav-color: #94720A;
- font-size: 20px;
- font-family: Georgia;
- }
- </style>
-
If you want to see for your self go here: http://dmtesting.vforums.co.uk and you will see
| |
|
ashkir Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/W9M-tej.gif) Posts: 1,159 Status: Offline Gender: Male Location: Cali! Age: 36 Joined:
pmskypemsnyahoo | Re: Category Text CSS (21st Oct 08 at 5:44pm UTC) | | Nope. Didn't work from my end. =/ | |
|
Nick Very Senior Member
    
![[Avatar]](http://uploads.vforums.co.uk/forums/support/f_5e7b1402b305d883af97446b2fedc6c2_1-eog.jpeg) Posts: 3,013 Status: Offline Gender: Male Location: vForums Age: 35 Joined:
pmwww | Re: Category Text CSS (21st Oct 08 at 5:46pm UTC) | | How about now? I increased it by 90 its really big now.
Oh and I only tested this in FireFox, Maybe I first should of tested everywhere else too. So I am on it.
| |
|
ashkir Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/W9M-tej.gif) Posts: 1,159 Status: Offline Gender: Male Location: Cali! Age: 36 Joined:
pmskypemsnyahoo | Re: Category Text CSS (21st Oct 08 at 5:48pm UTC) | | Works on your board but mine not, but I use the skin feature. Is it in your all skins? And what location? | |
|
Nick Very Senior Member
    
![[Avatar]](http://uploads.vforums.co.uk/forums/support/f_5e7b1402b305d883af97446b2fedc6c2_1-eog.jpeg) Posts: 3,013 Status: Offline Gender: Male Location: vForums Age: 35 Joined:
pmwww | Re: Category Text CSS (21st Oct 08 at 5:51pm UTC) | | Well I tested it in Internet Explore. Safari, Opera, and Google Chrome, all look fine to me. If you are talking about your forum I forgot to mention put the other code in your Global header. Then put the CSS where ever you like it. | |
|
ashkir Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/W9M-tej.gif) Posts: 1,159 Status: Offline Gender: Male Location: Cali! Age: 36 Joined:
pmskypemsnyahoo | Re: Category Text CSS (21st Oct 08 at 6:00pm UTC) | | I put it in the global footer and it worked. Thanks! | |
|
Nick Very Senior Member
    
![[Avatar]](http://uploads.vforums.co.uk/forums/support/f_5e7b1402b305d883af97446b2fedc6c2_1-eog.jpeg) Posts: 3,013 Status: Offline Gender: Male Location: vForums Age: 35 Joined:
pmwww | Re: Category Text CSS (21st Oct 08 at 6:07pm UTC) | | Your welcome. Glad to help. | |
|
ashkir Full Member
  
![[Avatar]](http://uploads.virtualforums.co.uk/forums/support/W9M-tej.gif) Posts: 1,159 Status: Offline Gender: Male Location: Cali! Age: 36 Joined:
pmskypemsnyahoo | Re: Category Text CSS (21st Oct 08 at 6:08pm UTC) | | 'nother problem arose the font tag isn't working. :[. It works when I use '.general.' in category name but I don't have the space to do all of them with the font tag to get that font. | |
|
Nick Very Senior Member
    
![[Avatar]](http://uploads.vforums.co.uk/forums/support/f_5e7b1402b305d883af97446b2fedc6c2_1-eog.jpeg) Posts: 3,013 Status: Offline Gender: Male Location: vForums Age: 35 Joined:
pmwww | Re: Category Text CSS (21st Oct 08 at 6:10pm UTC) | | Ok I will see what I can do.
edit:
Sorry I was not able to. Maybe Ross or Dwight can do it. Whomever gets on first.
edit 2: I can change the Title1 and 2 font family, but I cannot seem to get the category text to work. | |
|