-
AuthorPosts
-
funkmanusa Friend
funkmanusa
- Join date:
- April 2008
- Posts:
- 94
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 16
- Thanked:
- 3 times in 1 posts
October 20, 2008 at 5:13 pm #134612Not sure how best to word the question, but this is what I after.
I am trying to add text links within an article and would like to use a different link color without pulling from the template link color.
For example in my template the a:link css is:
a {
color: #2C79B3;
text-decoration: none;
}a:hover, a:active, a:focus {
color: #2C79B3;
text-decoration: underline;
}And in the article I would like my links to show #99000, but not change the default template a:link color so it doesnt change my template links as well.
So essentially I have one color for template links and another color for links within an article.
Hope this makes sense.
Thanks in advance!
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
October 20, 2008 at 6:39 pm #276306You could add a css ID on the ‘a’ element in your template css. Add the following to your css. DO NOT replace what is already there.
#idname a {
color: #99000;
text-decoration: none;
}#idname a:hover, a:active, a:focus {
color: #99000;
text-decoration: underline;
}Then to use it add the ID to your link html like <a id=”idname” src=”http://…..>
1 user says Thank You to scotty for this useful post
funkmanusa Friendfunkmanusa
- Join date:
- April 2008
- Posts:
- 94
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 16
- Thanked:
- 3 times in 1 posts
October 20, 2008 at 7:00 pm #276311I knew it would be something simple.
Thank you very much!
funkmanusa Friendfunkmanusa
- Join date:
- April 2008
- Posts:
- 94
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 16
- Thanked:
- 3 times in 1 posts
October 20, 2008 at 7:35 pm #276315OK, I’m stuck and not sure why it isnt working.
I have added to the template.css this:
#vendor a {
color: #99000;
text-decoration: none;
}#vendor a:hover, a:active, a:focus {
color: #99000;
text-weight: bold;
}And in the article for my link, this my code-
<a id=”vendor” href=”http://www.google.com/” target=”_blank”>Google</a>
Notice anywhere I’ve gone wrong?
Thanks again fro your help.
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
October 20, 2008 at 8:27 pm #276317try <div id=”vendor”><a href=”http://www.google.com/” target=”_blank”>Google</a></div>
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
October 20, 2008 at 9:37 pm #276324Ehh disregard the above post.
Add this to your CSS…
a.vendor {
color: #990000;
text-decoration: none;
}a.vendor:hover, a.vendor:active, a.vendor:focus {
color: #990000;
font-weight: bold;
}and link will be <a class=”vendor” href=”http://www.google.com/” target=”_blank”>Google</a>
note: It’s now class NOT id and it’s font-weight not text-weight
1 user says Thank You to scotty for this useful post
funkmanusa Friendfunkmanusa
- Join date:
- April 2008
- Posts:
- 94
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 16
- Thanked:
- 3 times in 1 posts
October 21, 2008 at 4:39 am #276371Scotty,
Thanks very much!
That did the trick. I really appreciate you taking the time to help me. -
AuthorPosts
This topic contains 8 replies, has 2 voices, and was last updated by scotty 16 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum