Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-01-2003, 02:32 PM   #1
Member (8 bit)
 
jsanchez's Avatar
 
Join Date: Sep 2002
Location: Laredo, Texas
Posts: 158
link color

hey kids,

i'm trying to assign different colors for links on the same page. If you take a gander at my website 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
jsanchez is offline   Reply With Quote
Old 07-01-2003, 10:33 PM   #2
Member (13 bit)
 
DrZaius's Avatar
 
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
Try using the FONT COLOR tag inside the A HREF tag.
DrZaius is offline   Reply With Quote
Old 07-02-2003, 12:02 AM   #3
Member (6 bit)
 
Join Date: Dec 2002
Location: Monterey, CA
Posts: 59
In your body tag:



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
BlueKrystal22 is offline   Reply With Quote
Old 07-02-2003, 01:58 AM   #4
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
You could take a look at CSS. That may be easier than doing it with HTML
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Old 07-02-2003, 05:36 AM   #5
Member (8 bit)
 
Join Date: Jun 2003
Posts: 153
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 is offline   Reply With Quote
Old 07-02-2003, 07:55 AM   #6
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Quote:
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:
PHP Code:
{
    
text-decoration:none;
    
font-weight900;
    
font-size 11px;
    
color:#24549E;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }

A:link {
    
text-decoration:none;
    
font-weight900;
    
font-size 11px;
    
color:#24549E;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }

A:visited {
    
text-decoration:none;
    
font-weight900;
    
font-size 11px;
    
color:#24549E;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }

A:active {
    
text-decoration:none;
    
font-weight900;
    
font-size 11px;
    
color:#24549E;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }

A:hover {
    
text-decoration:underline;
    
font-weight900;
    
font-size 11px;
    
color:#F8CE2E;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }

    
    .
gold {
    
text-decoration:none;
    
font-weight900;
    
font-size 11px;
    
color:#F8CE2E;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }

.
gold:link {
    
text-decoration:none;
    
font-weight900;
    
font-size 11px;
    
color:#F8CE2E;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }

.
gold:visited {
    
text-decoration:none;
    
font-weight900;
    
font-size 11px;
    
color:#F8CE2E;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }

.
gold:active {
    
text-decoration:none;
    
font-weight900;
    
font-size 11px;
    
color:#F8CE2E;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    }

.
gold:hover {
    
text-decoration:underline;
    
font-weight900;
    
font-size 11px;
    
color:#24549E;
    
font-family VerdanaGenevaArialHelveticasans-serif;
    } 
Once you have created the class, you would call it like so <a class-"gold" href="">

Quote:
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.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 07-02-2003, 08:25 AM   #7
Member (8 bit)
 
Join Date: Jun 2003
Posts: 153
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.
Sanke is offline   Reply With Quote
Old 07-02-2003, 11:28 AM   #8
Member (8 bit)
 
jsanchez's Avatar
 
Join Date: Sep 2002
Location: Laredo, Texas
Posts: 158
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.
jsanchez is offline   Reply With Quote
Old 07-03-2003, 08:15 PM   #9
avx
Live for the moment
 
avx's Avatar
 
Join Date: Apr 2002
Location: Florida
Posts: 1,938
Send a message via AIM to avx Send a message via Yahoo to avx
anyone else notice that everything just went blue...?
__________________
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein
I am ready to meet my Maker. Whether my Maker is prepared for the great ordeal of meeting me is another matter. - Sir Winston Churchill
avx is offline   Reply With Quote
Old 07-04-2003, 12:36 AM   #10
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,285
Yeah, I was wondering about that...
Force Flow is offline   Reply With Quote
Old 07-04-2003, 01:01 PM   #11
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
Join Date: May 2000
Location: Joplin MO
Posts: 36,460
Yes, this whole thread is blue.......??????
glc is offline   Reply With Quote
Old 07-05-2003, 02:48 AM   #12
Member (6 bit)
 
Join Date: Dec 2002
Location: Monterey, CA
Posts: 59

Last edited by BlueKrystal22; 07-05-2003 at 02:52 AM.
BlueKrystal22 is offline   Reply With Quote
Old 07-05-2003, 02:50 AM   #13
Member (6 bit)
 
Join Date: Dec 2002
Location: Monterey, CA
Posts: 59
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.

Last edited by BlueKrystal22; 07-05-2003 at 02:55 AM.
BlueKrystal22 is offline   Reply With Quote
Old 07-05-2003, 09:57 AM   #14
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
In BlueKrystal22 first post he used the this:
<body bgcolor="#FFFFFF" link="#003366" vlink="#003366" text="#003366">

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.

Last edited by mairving; 07-05-2003 at 10:00 AM.
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:39 PM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0