Website Babble Webmaster Forums  


Go Back   Website Babble Webmaster Forums > Creating a Website > HTML, PHP, CSS, Javascript & Coding/Programming Topics

Your WB Notifications

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-19-2009, 10:13 PM
sgtmac66's Avatar
Supreme Babbler
 
Join Date: Jan 2009
Location: Idaho
Posts: 787
sgtmac66 has an outstanding reputation at WB (over 500 points)sgtmac66 has an outstanding reputation at WB (over 500 points)sgtmac66 has an outstanding reputation at WB (over 500 points)sgtmac66 has an outstanding reputation at WB (over 500 points)sgtmac66 has an outstanding reputation at WB (over 500 points)sgtmac66 has an outstanding reputation at WB (over 500 points)
Default Changing Hyperlink colors

Have run into a problem, changing the hyperlinks that I use in the content to link to urls on other sites. They are not the normal link colors, but will match new colors.

I have tried the div class attribute, but the links will not change color.

Any advice on this...Can not seem to find a cure.
__________________
SgtMac66

Macs RevWar
Reply With Quote
  #2 (permalink)  
Old 09-19-2009, 10:58 PM
Regular Babbler
 
Join Date: Sep 2009
Posts: 75
Scott Cameron has more than the average amount of reputation points
Default

Have you tried giving the links a direct css color attribute?

also I wouldn't recommend just putting a <div> tag around a link in the middle of the content just to give it css attributes, you can just add an ID to the <a> like;

<a id="other-link" href="address"> Different link color </a>

and then you can assign different color settings for #other-link in your css file.

that way you can always just use <a id="other-link> whenever you want to use that different link color.


Hope I understood the question right ... wasn't 100% sure



let me know how that goes
__________________
Make Website Success - Learn how to create a successful website from start to finish. Help with Planning, Creating, Monetizing and Building traffic.
How to Create a Website
Reply With Quote
  #3 (permalink)  
Old 09-20-2009, 11:03 AM
Junior Babbler
 
Join Date: Sep 2009
Posts: 6
Zach has no reputation at Website Babble yet.
Default

Look on W3Schools. They can specifically help you. Also, try using the CSS tags a:link, a:visited, a:hover, etc and change the colors that way. If the classes aren't working then it could be a technical glitch(my computer a few days ago wouldn't recognize classes either for some reason) or you could have an error in the coding or syntax.
Reply With Quote
  #4 (permalink)  
Old 09-26-2009, 10:37 PM
Junior Babbler
 
Join Date: Sep 2009
Posts: 2
ericacampbell has no reputation at Website Babble yet.
Default

<a id="other-link" href="address"> Different link color </a>

wouldn't <a class="other-link" ... be a better option.

and in your css file...

.other-link a {
font-weight: bold;
color: #FFFFFF;
text-decoration: none;
}

.other-link a:hover {
color: #1E90FF;
}
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -6. The time now is 04:56 PM.


 Subscribe to RSS

WB Sponsors

flash chat

Home Jobs Online

Search Engine Marketing

Paid Surveys

Web Design Newcastle



 Subscribe to the Website Babble Feeds

2 Create a Website Homepage | 2 Create a Website Blog


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0