CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 24th, 2004, 12:13 AM
iamrick iamrick is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 iamrick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 6 sec
Reputation Power: 0
Question Why is this not working?

Why does this css style work only in firefox and not IE :

Code:
.showhide {font-family: "Trebuchet MS", Geneva, Arial, Helvetica, sans-serif;font-size: 12px;color: #EA6D67;cursor: pointer; onMouseOver:text-decoration: underline;}

Everything in the style works apart from the last section: {onMouseOver:text-decoration: underline;}

Any ideas? Cheers

Reply With Quote
  #2  
Old July 24th, 2004, 01:39 AM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,659 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 11 h 50 m 18 sec
Reputation Power: 687
I'm surprised that works on any browser. It's certainly not a syntax or css attribute I'm familiar with.

cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

My html and css workshop, demos and tutorials.
Ask a better question, get a better answer.

Reply With Quote
  #3  
Old July 24th, 2004, 01:42 AM
iamrick iamrick is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 iamrick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 6 sec
Reputation Power: 0
Actually, your right. It doesn't work on either. Don't know what the heck I was thinking about... but you see what I'm trying to do right, any idea on how to do it?

Reply With Quote
  #4  
Old July 24th, 2004, 02:30 AM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,659 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 11 h 50 m 18 sec
Reputation Power: 687
The css you're looking for is the :hover pseudo-class. Unfortunately, IE being the obsolete, buggy browser that it is, only understands this when applied to the a(nchor) element.
Code:
a:hover {
    text-decoration: underline;
    }

.showhide a:hover {
    font-weight: bold;
    }

cheers,

gary

Reply With Quote
  #5  
Old July 26th, 2004, 08:43 AM
iamrick iamrick is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 iamrick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 6 sec
Reputation Power: 0
Cheers! Thanks for your help

Reply With Quote
  #6  
Old July 26th, 2004, 01:05 PM
slimsam1's Avatar
slimsam1 slimsam1 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 31 slimsam1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 49 m 23 sec
Reputation Power: 6
Quote:
Originally Posted by iamrick
Why does this css style work only in firefox and not IE :

Code:
.showhide {font-family: "Trebuchet MS", Geneva, Arial, Helvetica, sans-serif;font-size: 12px;color: #EA6D67;cursor: pointer; onMouseOver:text-decoration: underline;}

Everything in the style works apart from the last section: {onMouseOver:text-decoration: underline;}

Any ideas? Cheers

just fyi:

onMouseOver is an attribute to call javascript functions, and can not be used inside a style sheet.

common use would be
<a href="http://blah" onMouseOver="alert('blah!')">blah</a>

Reply With Quote
  #7  
Old July 26th, 2004, 10:50 PM
iamrick iamrick is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 iamrick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 6 sec
Reputation Power: 0
Right, of course... thanks for that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Why is this not working?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT