homepage Welcome to WebmasterWorld Guest from 54.196.195.158
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Newbie Q's on Mouseovers and Backgrounds
Dino_M




msg:964412
 3:02 pm on Jan 8, 2003 (gmt 0)

What's the easiest way to get normal HTML text to become underlined when mouse over?

For a site such as bbc.co.uk how is the colour squares done? Is it one big BG image or is this tables with a colour BG given to each table?

Cheers all.

 

korkus2000




msg:964413
 4:11 pm on Jan 8, 2003 (gmt 0)

What's the easiest way to get normal HTML text to become underlined when mouse over?

It needs to be a link. You would make a css style like so placed in the head tag:

<style>
A {text-decoration:none;}
A:hover {text-decoration:underline;}
</style>

A {text-decoration:none;} - this makes links not have an underline when no mouse is over it.
A:hover {text-decoration:underline;} - This makes the underline on mouse over.
The text-decoration style also has overline, line-through, and blink.

Not sure about the color squares I don't see them at the bbc.

BjarneDM




msg:964414
 11:51 am on Jan 10, 2003 (gmt 0)

It's not necessary to make it a link.

The hover pseudo-class should now be supported on all elements, so you'll just need to do this: <span class="on-hover">my-text</span> and then in the css declare

.on-hover:hover {what-style-you-want}

but do test it in your browser of choice - only the best of browsers can make this work :-)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved