MPAA | MPAA | Credit Card Consolidation | Mobile Phones | Home Loan
link color [Archive] - PCMech Forums

PDA

View Full Version : link color


jsanchez
07-01-2003, 02:32 PM
hey kids,

i'm trying to assign different colors for links on the same page. If you take a gander at my <a href="http://geocities.com/jsanchez_nwo">website</a> and see where it has links to my schedule, i want those links to be green. do i have to use style sheets to accomplish that?

thanks....

section 8,
jsanchez

DrZaius
07-01-2003, 10:33 PM
Try using the FONT COLOR tag inside the A HREF tag.

BlueKrystal22
07-02-2003, 12:02 AM
In your body tag:

<body bgcolor=#FFFFFF link="#003366" vlink="#003366" text="#003366">

you have the 'link' color and the 'text' color the same hexidecimal value. Just assign a different value to 'link' (any href that has not been visited) and 'vlink' (any href that has been visited). For a list of your color options and their hexidecimal values, go here:

http://halflife.ukrpack.net/csfiles/help/colors.shtml

Force Flow
07-02-2003, 01:58 AM
You could take a look at CSS. That may be easier than doing it with HTML ;)

Sanke
07-02-2003, 05:36 AM
Just a little tip, don't assume that hard-core web designers use HTML editors.

Infact, most hard-core web designers invest in Dreamweaver MX (not stolen from the internet like so many of you have probably done.)
It may be pricey, but it gets the job done, and it's a bloody good job at that.

mairving
07-02-2003, 07:55 AM
Originally posted by DrZaius
Try using the FONT COLOR tag inside the A HREF tag.

I wouldn't use the font tag since it is deprecated. Use CSS since it gives you quit a few more options. You can build an extrernal stylesheet or an internal. I prefer external since you only have to make one. Here is a little snippet that I have used in the past to set color on regular links and those that are gold:

A {
text-decoration:none;
font-weight: 900;
font-size : 11px;
color:#24549E;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}

A:link {
text-decoration:none;
font-weight: 900;
font-size : 11px;
color:#24549E;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}

A:visited {
text-decoration:none;
font-weight: 900;
font-size : 11px;
color:#24549E;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}

A:active {
text-decoration:none;
font-weight: 900;
font-size : 11px;
color:#24549E;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}

A:hover {
text-decoration:underline;
font-weight: 900;
font-size : 11px;
color:#F8CE2E;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}


.gold {
text-decoration:none;
font-weight: 900;
font-size : 11px;
color:#F8CE2E;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}

.gold:link {
text-decoration:none;
font-weight: 900;
font-size : 11px;
color:#F8CE2E;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}

.gold:visited {
text-decoration:none;
font-weight: 900;
font-size : 11px;
color:#F8CE2E;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}

.gold:active {
text-decoration:none;
font-weight: 900;
font-size : 11px;
color:#F8CE2E;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}

.gold:hover {
text-decoration:underline;
font-weight: 900;
font-size : 11px;
color:#24549E;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}


Once you have created the class, you would call it like so &lt;a class-"gold" href=""&gt;

Originally posted by Sanke
Just a little tip, don't assume that hard-core web designers use HTML editors.

Infact, most hard-core web designers invest in Dreamweaver MX (not stolen from the internet like so many of you have probably done.)
It may be pricey, but it gets the job done, and it's a bloody good job at that.

Sanke, not sure why this reply was received to answer this question. First DW is a HTML editor. It is the best WYSIWYG editor out there. Second, it is not a good thing to accuse people of stealing without proof.

Sanke
07-02-2003, 08:25 AM
Well, strictly speaking, it's not an HTML editor, it's a WYSIWG editor, and all the coding is done in the background, unless you open the code viewer.

I didn't acuse anyone of stealing anything, I actually stated a probable fact.

jsanchez
07-02-2003, 11:28 AM
thanks alot guys, i really appreciate your help! i really should change the wording on that HTML tutorial section...you're right, many webmasters use both WYSIWYG and just regular editiors. i shouldn't assume that only hardcore designers use notepad, etc. thanks for the constructive criticism. again, thank you snake, mairving, dr zaius, forceflow, and bluekrystal.

avx
07-03-2003, 08:15 PM
anyone else notice that everything just went blue...?

Force Flow
07-04-2003, 12:36 AM
Yeah, I was wondering about that...

glc
07-04-2003, 01:01 PM
Yes, this whole thread is blue.......??????

BlueKrystal22
07-05-2003, 02:48 AM
<BODY bgColor=#CCCCCC leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

BlueKrystal22
07-05-2003, 02:50 AM
checking something...

thought it may have had something to do with the body tag that I posted earlier that didn't show up in the text. The color of the links for the page in discussion is blue, so I'm thinking it has something to do with text that was recognized as more than just text.

mairving
07-05-2003, 09:57 AM
In BlueKrystal22 first post he used the this:
&lt;body bgcolor="#FFFFFF" link="#003366" vlink="#003366" text="#003366"&gt;

HTML really doesn't like more than one body tag and can do weird things like changing the link color, etc. Removing the above HTML will return the link color back to normal.