SunQuest
           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 September 1st, 2003, 02:50 AM
moxie@devshed moxie@devshed is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Netherlands
Posts: 10 moxie@devshed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[CSS] display:none to display:block in IE

My first message/question here at devshed.

I've put a <span>text goes here</span> within a link. The default display is none. On a:hover the text should be displayed within a box at the left of the link.
I've seen this in work at several sites, and it does work in Mozilla, but it should also work in IE (6). All the examples I've seen work in exactly the same way as I implented this trick. But I can't get it to work in this site I'm making now.

Testpage

Stylesheet

Look for the div called "leasevoordelen", almost at the bottom of the page. The identifier for the span is called "more".

I hope someone has experience with this problem, because after days trying all kinds of things, I still can't get it to work

Reply With Quote
  #2  
Old September 1st, 2003, 03:06 AM
terminal's Avatar
terminal terminal is offline
nx
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: USA
Posts: 626 terminal Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 5 h 28 m 37 sec
Reputation Power: 0
Send a message via AIM to terminal
sorry, ic ouldnt really specify the exact items within your code....
however, here is your solution:

<div id="leasevoordelen">
<div><b>De voordelen van Almat KeukenleaseŽ:</b></div>
<div><a href="#" onMouseOver="document.getElementById('more').style.display='block'" onMouseOut="document.getElementById('more').style.display='none'>direct genieten van uw nieuwe keuken<span class="more" id="more"><strong>Sparen of...</strong><br /><br />
Een keuken kopen is een grote klus en doet u maar een enkele keer in uw leven. Vele vragen moeten beantwoord worden. Zoals, welke kleurstelling kiezen we, welk materiaal aanrechtblad heeft de voorkeur en welke inbouwapparaten willen we in de nieuwe keuken. Allemaal belangrijke vragen om uw keukendromen goed te kunnen realiseren. Maar er is een vraag die eigenlijk eerst gesteld moet worden: Hoe gaan we die nieuwe keuken betalen? Vroeger was het heel gewoon dat er gespaard werd maar tegenwoordig kiezen veel mensen voor een financieringsvorm waarbij de aanschafprijs van de keuken gespreid wordt over meerdere jaren.</span></a></div>

that should do the trick.

Reply With Quote
  #3  
Old September 1st, 2003, 03:19 AM
moxie@devshed moxie@devshed is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Netherlands
Posts: 10 moxie@devshed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Great! It works just fine now! (It really took me days just to get... nowhere...)

Thanks for the quick reply!

Reply With Quote
  #4  
Old September 1st, 2003, 03:24 AM
terminal's Avatar
terminal terminal is offline
nx
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: USA
Posts: 626 terminal Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 5 h 28 m 37 sec
Reputation Power: 0
Send a message via AIM to terminal
heh...np...if ya need me again...ill be here

Reply With Quote
  #5  
Old September 1st, 2003, 03:33 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,526 kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 19 h 47 m 28 sec
Reputation Power: 584
Check out Eric Meyer's page. There is a bug (imagine that) in IE that Eric inadverdently fixes in his code. I don't recall the reference to the bug(s), so I can't tell you what they are at this time. It has to do with the attributes. Experiment with Eric's working style frag; that should fix you up.

cheers,

gary

ps: it's pure CSS, no js

g
__________________
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.

Ask a better question, get a better answer.

Reply With Quote
  #6  
Old September 1st, 2003, 04:01 AM
terminal's Avatar
terminal terminal is offline
nx
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: USA
Posts: 626 terminal Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 5 h 28 m 37 sec
Reputation Power: 0
Send a message via AIM to terminal
woah! thats sooo cool kk5st! thanx for that!
...and i though i had css all covered...

Reply With Quote
  #7  
Old September 1st, 2003, 05:45 AM
moxie@devshed moxie@devshed is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Netherlands
Posts: 10 moxie@devshed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I've seen and read that page before. It was one of the pages that lead me to use this CSS-trick myself. This example works OK in IE, but in the page I made (I think exactly like that) it didn't work! But thanks to Terminal now it works in both browsers.

Perhaps you can check my testpage again and test it in IE. The first rollOver on the right has the correction suggested by Terminal, the others the way it should have worked (Eric Meyers way). The first one works, the others don't.

Reply With Quote
  #8  
Old September 1st, 2003, 04:25 PM
terminal's Avatar
terminal terminal is offline
nx
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: USA
Posts: 626 terminal Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 5 h 28 m 37 sec
Reputation Power: 0
Send a message via AIM to terminal
*bows* thank you thank you, pleaz, youre too kind :P
jkjk
kk5st, its alright, i thought what you provided was pretty cool

Reply With Quote
  #9  
Old September 2nd, 2003, 02:15 AM
moxie@devshed moxie@devshed is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Netherlands
Posts: 10 moxie@devshed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Just one more reply to this, because it would be more efficient if it could be solved entirely through CSS. And also because I want to understand why it doesn't work in CSS this time:

Do you have any idea what can cause it not to work this time in CSS, while the structure is (in my opinion) an exact duplicate of the one by Eric Meyer?

Reply With Quote
  #10  
Old September 2nd, 2003, 11:24 PM
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,526 kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level)kk5st User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 19 h 47 m 28 sec
Reputation Power: 584
OK, here's the reference I was too lazy to look up before. I just checked, and the hack works. It seems like half the time coding is devoted to fixing/hacking the bugs and non-compliant behavior of the dominant PoS browser from MS.

cheers,

gary

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > [CSS] display:none to display:block in IE


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 2 hosted by Hostway