Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 09-20-2006, 05:33 PM Hyperlink Colours
Junior Talker

Posts: 4
Trades: 0
The default colour of hyperlinks is causing problems with my scheme.
Does hyperlinks have to be the same colour on one page?


Thanks.

__________________
-Martin-


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
drmartin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-20-2006, 06:23 PM Re: Hyperlink Colours
Super Talker

Posts: 102
Trades: 0
No they don't. With CSS you can style any link anywhere.

Example HTML:

Code:
<a href="#">Some anchor</a>
<div><a href="#">Some other anchor</a></div>
<div><p><a href="#">Yet another one</a></p></div>
Example CSS: (goes within <head>)

Code:
<style type="text/css">
<!--
a { color: #FF0000;}
div a { color: #00FF00;}
div p a { color: #FFFF00;}
-->
</style>
The CSS example I've given is an embedded style sheet. The lines within the comments could also be pasted into a blank notepad file and saved as a .css file. In that case you'd have an external stylesheet which needs to be linked to a document by putting
Code:
<link href="urltocssfile.css" rel="stylesheet" type="text/css" />
into the head section of your HTML file.

Last edited by ghettobert; 09-20-2006 at 06:28 PM..
ghettobert is offline
Reply With Quote
View Public Profile
 
Old 09-21-2006, 09:49 AM Re: Hyperlink Colours
Super Talker

Posts: 126
Location: Australia
Trades: 1
You need to put colours for hyperlink, ghettobert gaves you the example codes.
__________________

Please login or register to view this content. Registration is FREE
: Quality Linux Web Hosting Solutions : Since 2004

WHM/cPanel | PHP 5 | 24x7 Support NOW | Daily Backups!

Please login or register to view this content. Registration is FREE
XHTML & CSS Forum for everyone!
Tribolis is offline
Reply With Quote
View Public Profile Visit Tribolis's homepage!
 
Old 09-26-2006, 03:19 AM Re: Hyperlink Colours
Junior Talker

Posts: 1
Trades: 0
5-HTP Dlpa AHCC
martan is offline
Reply With Quote
View Public Profile
 
Old 09-27-2006, 08:27 AM Re: Hyperlink Colours
Kirtan's Avatar
Who Am I?

Posts: 376
Name: Venkat Raj
Location: Salem, South India
Trades: 3
Use can also use following code
Code:
<html>
<head><title>Hi</title>
<style>
#linkStyle1 a:link,  linkStyle1 a:active, linkStyle1 a:visited,  {
color:#338833;
text-decoration:none;
}
#linkStyle1 a:hover,  {
color:#333333;
text-decoration:underline;
}
</style>
</head>
<body>
<div id="linkStyle1"><a href="yourlink.html">Link Text</a></div>
</body>
</head>
__________________
All the Buddhas of all the ages have been telling you a very simple fact: Be -- don't try to become.
Kirtan is offline
Reply With Quote
View Public Profile Visit Kirtan's homepage!
 
Old 09-27-2006, 03:28 PM Re: Hyperlink Colours
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The proper way to make a menu is not with a batch of divs or links inside paragraphs but with an unordered list.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Hyperlink Colours
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23197 seconds with 12 queries