Closed Thread Icon

Preserved Topic: No underline until mousover link (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17840" title="Pages that link to Preserved Topic: No underline until mousover link (Page 1 of 1)" rel="nofollow" >Preserved Topic: No underline until mousover link <span class="small">(Page 1 of 1)</span>\

 
dublj
Obsessive-Compulsive (I) Inmate

From: Minneapolis, MN, USA
Insane since: Aug 2000

posted posted 08-29-2000 17:52

I have a site where someone would like only 1 specific link to be sans underline until mouseover. Do you know where i can find a script for this?

la'dsasha
Neurotic (0) Inmate
Newly admitted
posted posted 08-29-2000 18:05

thats easy.. its just css

code:
a:link, a:active, a:visited { color: rgb(203,185,156); text-decoration: none; font-weight: 700 }
a:hover { color: rgb(51,42,41); text-decoration: underline; font-weight: 700 }



copied from one of my other sites.. so take what you need.

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 08-29-2000 18:12

If I understand the question right, the rest of the links on the page are set to no decoration, right? And just one of them is different? So you have to make a pseudo link class for that one particular link maybe. Or does the css in the above post overide the overall page css?

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 08-29-2000 18:21

Steve you are right, the CSS above needs to be tweaked otherwise they are all gonna get tagged with underlines. Something like this:

a.special:hover {text-decoration:underline}

Then <A HREF="whatever.com" CLASS="special">

for the link.

Should be also stated that the hover function only works in IE too (I think).


Walking the Earth like Kane

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 08-29-2000 18:48

yes it is possible and in fact very easy. are you familiar with CSS at all? if not, ou should look into it -- it is fairly simple to learn and extrememly useful.

anyway, it would look something like this;


<style type="text/css">

<!--

a {font-family: whateverfont,2ndfontchoice; font-size: 12px; font-weight: normal; text-decoration: underline;}
a.plain {font-family: whateverfont,2ndfontchoice; font-size: 12px; font-weight: normal; text-decoration: none;}
a.plain:hover {font-family: whateverfont,2ndfontchoice; font-size: 12px; font-weight: normal; text-decoration: underline;}

-->

</style>


you need three classes of links: normal, the sans-underline one, and the sans-underline one for the hover. Netscape does not currently support the hover attribute although I'm told the 6.0 beta does.

in the link tag, you set it up like this:

<a href="yaddayadda.html" class="plain">

that will make it look to the "a.plain" style info for that link.


If I'm telling you things you already know, just ignore me <img border=0 align=absmiddle src="http://www.ozones.com/forum/smile.gif"> if you want to learn more about CSS check out http://www.projectcool.com/



Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 08-29-2000 21:05

Or http://www.westciv.com/style_master/house/tutorials/index.html

the most thorough resource on CSS I've run across.

dublj
Obsessive-Compulsive (I) Inmate

From: Minneapolis, MN, USA
Insane since: Aug 2000

posted posted 08-29-2000 21:58

Thanx all for your help. I knew there must be a way to do this with CSS, i just couldn't find the correct resources to get started. Until i posted here.

THanx again and peace out!

« BackwardsOnwards »

Show Forum Drop Down Menu