Shoutbox

Html code help :S - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Html code help :S (/showthread.php?tid=43664)

Html code help :S by John Anderton on 04-26-2005 at 09:36 AM

Whats the html code for defining the colour for a hyperlink

  1. Before clicking
  2. After clicking it
  3. and when the mouse is hovering on it
    [/list]

    I am making a site by using notepad and the site uses php scripts and css. :)
    If all goes well it should be done in a few hours :) But i get stuck on such small points and its irritating cause i cant go forward :P

RE: Html code help :S by -dt- on 04-26-2005 at 09:47 AM

code:
body a:link{
color: black;
}
body a:visited{
color: black;
}
body a:active {
    color: black;
}

add that to your css :P


edit:
dont use the html way add a class if you need to single out links like

code:
class a:link{
color:blue;
}


RE: Html code help :S by John Anderton on 04-26-2005 at 09:56 AM

Isnt there a hover to change colour way :P that looks cool :P


RE: Html code help :S by Dempsey on 04-26-2005 at 11:13 AM

code:
a:hover{
color: red;
}

RE: Html code help :S by RaceProUK on 04-26-2005 at 12:43 PM

quote:
Originally posted by -dt-
dont use the html way add a class if you need to single out links like

code:
class a:link{
color:blue;
}


Don't you mean
code:
a.class:link{
color:blue;
}

?
RE: Html code help :S by Eljay on 04-26-2005 at 12:51 PM

quote:
Originally posted by raceprouk
quote:
Originally posted by -dt-
dont use the html way add a class if you need to single out links like

code:
class a:link{
color:blue;
}


Don't you mean
code:
a.class:link{
color:blue;
}

?

yeh thats right

the first way is like if you need a link inside a table or something

e.g table a:link makes all links inside tables the specified color
RE: Html code help :S by Sunshine on 04-26-2005 at 12:54 PM

All you need to know: http://www.w3schools.com ;)
It's where i search first :chrongue:


RE: Html code help :S by John Anderton on 04-26-2005 at 01:22 PM

quote:
Originally posted by Sunshine
It's where i search first
Thats where i search too :cheesy: I got it off google and well i remember that u made ur personal site with its help too :D
quote:
Originally posted by Lee Jeffery
yeh thats right

the first way is like if you need a link inside a table or something

e.g table a:link makes all links inside tables the specified color
Thats what i was wondering too .... cause i wanted to use exactly that part. Cause in different css boxes the background is differnt and black wont work in the content box.
Btw .... i cant still get the image thumbunail maker to work :-/ Thats where i am stuck. So if anyone who can help me is listening then im on msn. Help me there .... i'll show u exactly what i have done and what i need to do :)
RE: Html code help :S by VLenin on 04-26-2005 at 01:34 PM

You should not use classes if that's not needed. Use a paragraph instead, like this

<p id="localhost">Hi i'm <a href="localhost">localhost</a></p>

Now your css would be like

p#localhost a:link, p#localhost a:visited
{
  text-decoration: none;
  color: #000;
}
p#localhost a:hover
{
  text-decoration: underline;
}


RE: Html code help :S by Ezra on 04-26-2005 at 03:50 PM

or html like he asked :P

<body alink="#FFFFFF" vlink="#000000">


RE: Html code help :S by John Anderton on 04-26-2005 at 07:53 PM

Thanks guys ...

quote:
Originally posted by Ezra
or html like he asked
I was already using css as i said so i did use the css method that dt said at 1st then i changed to what raceprouk (not racepunk; someone keeps saying that :P) said ;) Thanks :)