Help - Search - Members - Calendar
Full Version: how to use this code ?
Forums > Resource Center > Support Center > Myspace Support > Myspace Resolved Topics
Yuniechan
to use codes like this but only when hover on text that is a link ?

CODE
<span style="background-color:COLOR">YOUR_TEXT_HERE</span>
Anarchy
Try this:

CODE
<style>
a:hover {background-color:COLOR;}
</style>

Change COLOR to the color you want.
aQuafly
or you can make your own type of links using this

CODE


<style>
a.linknamehere
{color:colorhere;
font-family:fonthere;
font-size:XXpx;}

a.linknamehere:hover
{color:colorhere;
font-family:fonthere;
font-size:XXpx;
background-color:colorhere;}

</style>



and then you make links using this

CODE


<a class=linknamehere" href="linkhere">Click</a>



you can change the linknamehere to whatever you'd like, but just keep the name consistent in all of the coding.
Anarchy
Yep, that's what you'd call a class. That's good for specifying certain links to have different styles. If you're looking for a more general look, go with mine.
melindadivine
yay links!!

yeah just do a css link code..its easier...
Anarchy
^It's easier, but some links might not be affected by that code. That's ideal for DIV layouts, though.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.