HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
problems with DHTML rollovers within a stylesheet
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
bloodandsedition



Joined: 27 May 2005
Posts: 4

PostPosted: Fri May 27, 2005 1:32 pm     problems with DHTML rollovers within a stylesheet Reply with quote

does anyone know if i can make this rollover script into a style or class on a stylesheet? I tried a few things which i didn't think would work such as

Code:

A
   {

A:link {text-decoration:none; color:gray}
A:visited {text-decoration:none; color:gray}
A:hover {text-decoration:none; color:white}

   }


OK and this is what it looks like on my html pages inside the head claus

Code:

<head>

<style>
<!--
A:link {text-decoration:none; color:gray}
A:visited {text-decoration:none; color:gray}
A:hover {text-decoration:none; color:white}
-->
</style>

</head>


I may figure this out myself but I'm lazy and didn't know if anyone could give me any pointers before i set out to see if this is even possible...THANKS

BTW, I'm new to CSS as of today, but excellent with html so whoever posts back please clarify anything =)
bloodandsedition



Joined: 27 May 2005
Posts: 4

PostPosted: Fri May 27, 2005 2:06 pm     pretty rollover links with CSS Reply with quote

I figured it out 5 minutes after I posted... oh well

for anyone who wants to know how to create links that are text rollovers without the ugly link underline simply add this to your stylesheet...

Code:

   A:link {text-decoration:none; color:gray}
   A:visited {text-decoration:none; color:gray}
   A:hover {text-decoration:none; color:white}


no brackets around it nothing, I was trying to make it more complicated then it was, its just really simple... and of course the color can be hexidecimal or some of the simplier "named" web colors.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial