This is a discussion on Link Text Hover Color within the HTML, CSS, and Design Help forums, part of the General category; Hi, On my site i currently have the link standard. I want to change the links to black but when ...
|
|||||||
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Hi,
On my site i currently have the link standard. I want to change the links to black but when hovering over the color changes to a color say orange. If i change the color to black by adding <font color="#000000"> it makes it black but the color does not change when being hovered over it. How do i change the color but keep the change on hover? Im guessing its in the style.css but i couldnt find it. Any Help would be great. Cheers, Nick
__________________
Nick Bowers www.truckandmachinery.com.au www.truckyard.com.au www.factoryyard.com.au www.forestryyard.com.au www.mineyard.com.au www.constructionyard.com.au all linked using 68C 4.09 Developer www.everythingsfree.org www.nickswebhosting.com www.quick-templates.com www.quick-software.com www.biggesttemplatepack.com www.ausproxy.com.au "It's not a bug - it's an undocumented feature." |
|
#2
|
||||
|
||||
|
In the default template it is at the top of the style sheet:
Code:
/* links */
a { color: #003B6E;}
a:hover { color: #9EC068; }
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | Submit a Ticket | Twitter |
|
#3
|
||||
|
||||
|
Hi,
Is it possible to set it infront of certain links? I only really want it in the search reults and the featured items on the front page. But any other link to be standard. Cheers, Nick
__________________
Nick Bowers www.truckandmachinery.com.au www.truckyard.com.au www.factoryyard.com.au www.forestryyard.com.au www.mineyard.com.au www.constructionyard.com.au all linked using 68C 4.09 Developer www.everythingsfree.org www.nickswebhosting.com www.quick-templates.com www.quick-software.com www.biggesttemplatepack.com www.ausproxy.com.au "It's not a bug - it's an undocumented feature." |
|
#4
|
||||
|
||||
|
Quote:
http://www.w3schools.com/css/css_howto.asp
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
#5
|
||||
|
||||
|
Hi,
I have made a new style in the style sheet Code:
.showlistings
a { color: #000000;}
a:hover { color: #FF6600; }
I want to add it to this link Code:
<a href="{$entry.link}" style="text-decoration: none">{$entry.title}</a>
Cheers
__________________
Nick Bowers www.truckandmachinery.com.au www.truckyard.com.au www.factoryyard.com.au www.forestryyard.com.au www.mineyard.com.au www.constructionyard.com.au all linked using 68C 4.09 Developer www.everythingsfree.org www.nickswebhosting.com www.quick-templates.com www.quick-software.com www.biggesttemplatepack.com www.ausproxy.com.au "It's not a bug - it's an undocumented feature." |
|
#6
|
||||
|
||||
|
Actually you made a new class. So now call that class.
__________________
Civ's Modules (____NOW v4 COMPATIBLE____): � Stop Incomplete Listings! (proven revenue booster!) � Scam Filter (Just say no to Nigerians!) updated � Similar Listings (keep visitors longer) � Feedback Mod (testimonial builder) � Listing Status Reminder free! |
|
#7
|
||||
|
||||
|
Attention CLASS, attention. Is that how you call a class?
OK, OK, class="showlistings" <a href="{$entry.link}" class="showlistings" style="text-decoration: none">{$entry.title}</a> -Mike
__________________
Mike-N-Tosh v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0, 4.0.1, 4.0.4, 4.0.8 Templates for sale | 68 Classifieds Customizations Web Hosting | Web Design & Development I am not a 68C employee, just a user and try to help out |
|
#8
|
||||
|
||||
|
Hi,
Thanks for that, works like a charm in the showlisting but when was trying to put it in the featured page for the fornt page i get an error. I used Code:
$output.="<a href='". $link ."' style='text-decoration: none' class="showlistings">".$loop[$x][title] ."</a><br />"; Code:
$output.="<a href='". $link ."' class="showlistings" style='text-decoration: none'>".$loop[$x][title] ."</a><br />"; Any ideas why and how to do it? Cheers
__________________
Nick Bowers www.truckandmachinery.com.au www.truckyard.com.au www.factoryyard.com.au www.forestryyard.com.au www.mineyard.com.au www.constructionyard.com.au all linked using 68C 4.09 Developer www.everythingsfree.org www.nickswebhosting.com www.quick-templates.com www.quick-software.com www.biggesttemplatepack.com www.ausproxy.com.au "It's not a bug - it's an undocumented feature." |
|
#9
|
||||
|
||||
|
For this you are working directly in php so you have to watch your quotes.
You have this: Code:
$output.="<a href='". $link ."' class="showlistings" style=' Example: Code:
$output.="<a href='". $link ."' class=\"showlistings\" style='
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | Submit a Ticket | Twitter |
|
#10
|
||||
|
||||
|
Hi,
Thanks, Worked like a charm. Cheers
__________________
Nick Bowers www.truckandmachinery.com.au www.truckyard.com.au www.factoryyard.com.au www.forestryyard.com.au www.mineyard.com.au www.constructionyard.com.au all linked using 68C 4.09 Developer www.everythingsfree.org www.nickswebhosting.com www.quick-templates.com www.quick-software.com www.biggesttemplatepack.com www.ausproxy.com.au "It's not a bug - it's an undocumented feature." |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| category text color / page location | centinel3 | HTML, CSS, and Design Help | 6 | 08-07-2008 12:45 PM |
| Anchor text link in viewlisting.tpl | SkGold | v3.1 Modules & Modifications | 4 | 04-10-2007 11:05 PM |
| Link font color... Should be easy | Tater | v3.1 Questions & Support | 2 | 03-25-2007 10:27 AM |
| Quick Text Color Question. | redgsr | HTML, CSS, and Design Help | 2 | 03-08-2007 02:14 PM |
| adding link to featured listings text | NJHomeGuide | v3.0 Questions & Support | 0 | 05-07-2006 03:21 PM |