HTML code to change the color of Links <a href...

dugweb

Diamond Member
Oct 17, 2002
3,935
1
81
I know how to set the entire page's default link color (page properties)

but I want to have the link color on my main page to be different than that of the color on my navigation bar on the side. They don't work well together as the same color for this page :(

any help?
 

MrScott81

Golden Member
Aug 31, 2001
1,891
0
76
couldn't you use css? assign the links for you main page to a different class, and have each class use different colors in your css.
i.e.
<a class="navbar" href=... />
<a class="mainpage" href=... />

css code:
a.navbar{ ...//css code here }
a.mainpage{ ..//css code here }
 

dugweb

Diamond Member
Oct 17, 2002
3,935
1
81
hmmm :confused: I'm not familier with css

also another quick question, how do you get text to wrap around a picture... i.e. a news website will have a paragraph of text next to the picture.
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
Originally posted by: dugweb
hmmm :confused: I'm not familier with css

also another quick question, how do you get text to wrap around a picture... i.e. a news website will have a paragraph of text next to the picture.

CSS haunts you again :p

You can apply "float: left/right;" to the image and it'll do just that :)
 

dugweb

Diamond Member
Oct 17, 2002
3,935
1
81
:Q woo, i guess i better google css and see what this stuff is all about :p
 

wkinney

Senior member
Dec 10, 2004
268
0
0
Originally posted by: HeroOfPellinor
<a href="link.html"><font color="green">TEXT</font></a>

oi that is a deprecated and very poor way to implement a link of a specific color. Use CSS and XHTML specifications from W3C.
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
Originally posted by: HeroOfPellinor
<a href="link.html"><font color="green">TEXT</font></a>



if you can't learn to do it right. Please please please dont make webpages.
 

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
Originally posted by: screw3d
Originally posted by: dugweb
hmmm :confused: I'm not familier with css

also another quick question, how do you get text to wrap around a picture... i.e. a news website will have a paragraph of text next to the picture.

CSS haunts you again :p

You can apply "float: left/right;" to the image and it'll do just that :)
<img src="blah.jpg" align="right"> will also work.

<-- hides from the CSS peeps.

 
Dec 27, 2001
11,272
1
0
Originally posted by: sourceninja
Originally posted by: HeroOfPellinor
<a href="link.html"><font color="green">TEXT</font></a>



if you can't learn to do it right. Please please please dont make webpages.

Yeah, "doing it right" means having a "works best at 1024x768 on IE 6.01" as a footer, eh? :roll: Or, heck, don't even let them in and give them a download the latest version of IE.....afterall, the only people visiting your website should be geeks with properly updated web browsers and 16x12 displays.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: HeroOfPellinor
Originally posted by: sourceninja
Originally posted by: HeroOfPellinor
<a href="link.html"><font color="green">TEXT</font></a>



if you can't learn to do it right. Please please please dont make webpages.

Yeah, "doing it right" means having a "works best at 1024x768 on IE 6.01" as a footer, eh? :roll: Or, heck, don't even let them in and give them a download the latest version of IE.....afterall, the only people visiting your website should be geeks with properly updated web browsers and 16x12 displays.
If a browser can't support a simple css class then, no, it shouldn't be allowed on the web and if someone complained that the page looked funny then I'd tell them to stop holding the rest of the world back with an out of date client. The people that design the html specs have been telling us for years not to use font tags :roll: