• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Stoopid question bout HTML

#1
Ok, I followed the Active Desktop Tutorial to the T. I got everytrhing to work well and good BUT. Now I want to know how to change the font/color/and underline of the links I've made to the desktop (ie: solitaire). When doing the link, iot comes out blue and underlined. I would want it black and NOT underlined. BTW, thanks Matt for the tutorial and for the help you've given everyone. I'm kinda jumpin onboard this whole HTML boat a bit late but whatever. Thanks for the replies guys, I appreciate it.
 

SPeedY_B

I may actually be insane.
#2
You'll need to use CSS for that. probably the easiest way would be to put this in your head tags...
Code:
<style type="text/css">
a{text-decoration:none;}
a:link {
  color:black;
  background: transparent

}
a:visited {
  color:black;
  background: transparent
}
a:active {
  color:blue;
  background: transparent
}
a:hover {
  color:blue;
  background: transparent
}
</style>
 

SPeedY_B

I may actually be insane.
#4
put the following just after your <body> tags.
Code:
<font face="Arial" Size="2">
obviously change the name and size for your needs :)
 

syn

long live xp0!
#5
bootsy, you don't even need to go that in depth...just use a style tag with your href statement like this...

<a href="..." style="color:'#000000'">Solitaire</a>

save a lot of time and code.
 

SPeedY_B

I may actually be insane.
#6
syn
bootsy, you don't even need to go that in depth...just use a style tag with your href statement like this...

<a href="..." style="color:'#000000'">Solitaire</a>

save a lot of time and code.
using that method requires EVERY href statement to be altered, using the css in the <head> will change all the links at once.
 

Tabula Rasa

Stranger Than Kindness
Political User
#10
Originally posted by Bootsy
wow cool...now we're getting somewhere =]

howbout underlining?
you can also add the underlining to the CSS like this:

Code:
<style type="text/css">
a{text-decoration:none;}
a:link {
  color:black;
  background: transparent

}
a:visited {
  color:black;
  background: transparent
  [b]text-decoration: underline[/b]
}
a:active {
  color:blue;
  background: transparent
  [b]text-decoration: underline[/b]
}
a:hover {
  color:blue;
  background: transparent
  [b]text-decoration: underline[/b]
}
</style>
you can add it to only hover for example, so that only when you hover over a link it will become underlined , you can add it pretty much any way you want.
 

SPeedY_B

I may actually be insane.
#11
Benny is right, it's a flexible part of HTML.
If you want to learn more about HTML and CSS then take a visit to the W3Schools site (http://www.w3schools.com/) and use the links in the top left, they're free tutorials which will give you a better idea about coding HTML.
 
J

jumpy

Guest
#13
Or you could just use html
Code:
<body bgcolor=black text=white link=black vlink=black>
None of that fancy CSS underlining stuff, but shorter none the less.
 

SPeedY_B

I may actually be insane.
#14
It's the best way to learn HTML.
Otherwise you end up using crap like frontpage and end up with pages and pages of completely un-compliant code.
 

SPeedY_B

I may actually be insane.
#15
jumpy
Or you could just use html
Code:
<body bgcolor=black text=white link=black vlink=black>
None of that fancy CSS underlining stuff, but shorter none the less.
That only changes the colour, Bootsy wants the links to not be underlined as well as black.
 
J

jumpy

Guest
#16
Hence me saying
None of that fancy CSS underlining stuff, but shorter none the less.
Wasn't a completely correct answer to the question but pointing out different methods helps us all to learn :)
 

Tabula Rasa

Stranger Than Kindness
Political User
#17
Originally posted by jumpy
Or you could just use html
Code:
<body bgcolor=black text=white link=black vlink=black>
None of that fancy CSS underlining stuff, but shorter none the less.
Well , CSS exists for a good reason , if you do a page with one link and one word, you can manage without it.
but what if you are doing a web site with hundreds of links, in that case CSS can save you big time and effort.
 
J

jumpy

Guest
#18
Ok, nevermind guys, just forget I said it. I realise that css is there for a good reason but was just showing alternatives.

Stop pickin on me.....:( I'm not a html pro like you guys...
 

Tabula Rasa

Stranger Than Kindness
Political User
#19
I'm not pickin on anyone, i'm a peace loving creature, xsept when i'm not.
either way is fine really, its just nice to know all the alternatives.
 

Members online

No members online now.

Latest posts

Latest profile posts

Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,015
Latest member
evaiwhitis