This may seem like a simple quesiton, but I have tried numerous things and can't seem to get what I want to work. First off my site is: http://www.ringobsession.net. There is a menu on the left side of the site filled with links, these links are gold (E4B002) but I want them to be greenish (98a718). They were originally green, but I was messing around with my stylesheet and made it to where all links are the gold color (all over my site, not just the menu) and this has in turn made the links on the left also yellow. I tried opening the menu.html file. Because this is the file that has that huge list of links on. I tried putting font color tags around this file but it did not alter the colors.
Then I tried making a class (I don't know a thing about doing classes so I possibly did it wrong). I put ".menu-color {font-family: Verdana; font-size: 11px; color: #98A718;}" in my stylesheet then in the table tags on my menu.html I put class=".menu-color" this too did not have an affect at all on the links on the left. So, is there any way that I can change these links to the green color instead of gold? But JUST for the links on the left, I would like the rest of the site to have gold links.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
A complication in link colors.
-
- Rank: Freshman
- Registered: Jan 22, 2004
- Last visit: Oct 21, 2009
- Posts: 66
here is an example how to create a class. in your case leftmenu:
.leftmenu {text-decoration:none;font: normal 11px Verdana;color: #98A718;}
.leftmenu A:link {text-decoration:none;font: normal 11px Verdana;color: #98A718;}
.leftmenu A:visited {text-decoration:none;font: normal 11px Verdana;color: #98A718;}
.leftmenu A:hover {text-decoration:none;font: normal 11px Verdana;color: #98A718;}
.leftmenu A:active {text-decoration:none;font: normal 11px Verdana;color: #98A718;}
the values have to be set by you, font, size, text-decoration (can be underline instead of none) if you want to have the link colour changing when the mouse is over, edit the colour in Hover
now you only need to find in your theme for the leftblock HTML and put class:leftmenu in the table tags. If you don't have a leftblock HTML you also can do it at your theme.html or PHP where at the leftcolumn table tag
If you having problems with this sent me a private message, and I will give you an email where you can the theme to and I fix it for you -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 76
Sorry for the delayed response. I've been a bit busy. I just tried what you suggested Mazalleh, and I have to say thank you very much! This worked for me and I also was taught a great deal about stylesheets. I put a lot of those classes in my PNphpbb forum, so now all the links won't have to be the exact color. Thanks!
- Moderated by:
- Support
