Link Text Hover Color

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 ...


Go Back   68 Classifieds Forums > General > HTML, CSS, and Design Help

 
LinkBack Thread Tools Display Modes
  #1  
Old 08-11-2008, 08:00 AM
bowers01's Avatar
Senior Member
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 425
Rep Power: 10
Question Link Text Hover Color

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
Reply With Quote
  #2  
Old 08-11-2008, 08:24 AM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,003
Rep Power: 92
Default

In the default template it is at the top of the style sheet:
Code:
/* links */
a { color: #003B6E;}
a:hover { color: #9EC068; }
You would edit the a:hover
__________________
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
Reply With Quote
  #3  
Old 08-11-2008, 08:31 AM
bowers01's Avatar
Senior Member
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 425
Rep Power: 10
Default

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
Reply With Quote
  #4  
Old 08-11-2008, 08:43 AM
Moderator
 
Join Date: Mar 2006
Posts: 3,249
Rep Power: 80
Default

Quote:
Originally Posted by bowers01 View Post
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
You have two options, define a new css class and apply it to the template manually or if you have to edit the template anyway, I would just put the style for the element directly on the element you want to change and it should override the style sheet.

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
Reply With Quote
  #5  
Old 08-12-2008, 02:43 AM
bowers01's Avatar
Senior Member
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 425
Rep Power: 10
Default

Hi,
I have made a new style in the style sheet
Code:
.showlistings
a { color: #000000;}
a:hover { color: #FF6600; }
How do i call it infront of the showlisting links?
I want to add it to this link
Code:
<a href="{$entry.link}" style="text-decoration: none">{$entry.title}</a>
Any Help is great.
Cheers
Reply With Quote
  #6  
Old 08-12-2008, 12:34 PM
civ's Avatar
civ civ is offline
Senior Member
 
Join Date: Mar 2006
Location: Greer, SC
Posts: 655
Rep Power: 24
Default

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!
Reply With Quote
  #7  
Old 08-12-2008, 06:29 PM
Moderator
 
Join Date: Jan 2007
Posts: 836
Rep Power: 27
Default

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
Reply With Quote
  #8  
Old 08-13-2008, 03:16 AM
bowers01's Avatar
Senior Member
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 425
Rep Power: 10
Default

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 />";
And then tried
Code:
$output.="<a href='". $link ."' class="showlistings" style='text-decoration: none'>".$loop[$x][title] ."</a><br />";
and get an error on that line for both tries.
Any ideas why and how to do it?
Cheers
Reply With Quote
  #9  
Old 08-13-2008, 08:15 AM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,003
Rep Power: 92
Default

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='
Which is not correct because because directly after $output.= is a double quote. This means for you to use double quotes again you need to either escape them or use single quotes.

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
Reply With Quote
  #10  
Old 08-13-2008, 08:23 AM
bowers01's Avatar
Senior Member
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 425
Rep Power: 10
Default

Hi,
Thanks,
Worked like a charm.
Cheers
Reply With Quote

Bookmarks

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

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


All times are GMT -4. The time now is 01:24 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22