Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> IE + CSS Hover Problems
pyost
post Jun 4 2006, 10:33 AM
Post #1


Nenad Bozidarevic
Group Icon

Group: [MODERATOR]
Posts: 1,002
Joined: 7-November 05
From: Belgrade, Serbia
Member No.: 9,500



At the beginning of the month I started a riddle blog at www.blogger.com. I customized everything and it worked fine until I checked how it looks in Internet Explorer.

Since the blog is about riddles, I had to find a simple way of hiding/showing solutions. I made a new CSS class called 'spoiler' and defined it in this way:

CODE
.spoiler a {
  text-decoration: none;
  color: #000;
}

.spoiler a:hover {
  text-decoration: none;
  color: #ad9;
}


And for the solution, I used this HTML code:

HTML
<div class="spoiler">
<a>
<span style="font-weight: bold; color: rgb(204, 204, 204);">Hover over this for the solution</span>
RIDDLE SOLUTION
</a>
</div>


As you can see, first a have a line that is visible (because the background is black) and another one which is not, as defined in '.spoiler a'. Since both "Hover over this" and the solution are in the same link, hovering over the text will show the solution (again because of the CSS). It all works fine in Firefox, but Internet Explorer doesn't show it. Is there any other way of doing this without using complicated scripts etc. Because I don't think Blogger allows JavaScript (which would be perfect).

The web site's address is http://braind.blogspot.com/

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Nero Problems(28)
  2. Freebsd Burning & Installation Problems(4)
  3. PHP Problems(4)
  4. Web Browser And Taskbar Problems (web Browser Disappears)(7)
  5. Hitman: Blood Money(8)
  6. Windows Problems "new Series"- Xp Home Edition Activation Issue(6)
  7. Problems Installing Vista(13)
  8. Screensaver Problems(10)
  9. User Authentication Session Handling Problems(14)
  10. Installation Gone Bad...(14)
  11. Office 2007 Document Problems(12)
  12. Problems With Php Saving Data Into Mysql(6)
  13. External Hard Disk Problems(11)
  14. Internet Connection Sharing Problems(2)
  15. Mysql Build/install Problems(4)
  1. Focus() And Select() Problems With Firefox(2)
  2. Php Problems(1)
  3. Firefox Problems..(6)
  4. Connection Problems(9)
  5. Two Problems.(5)
  6. Website Navigation Hover Buttons Stick So Made Css Today(7)
  7. Networking Problems(4)
  8. Existing Problems(4)
  9. Email Problems(5)
  10. Updating Graphics Card Problems(11)
  11. Gimp: Saving As... Issues(3)
  12. Image Problems With Windows 2000(8)
  13. Wamp Server Problems(4)


 



- Lo-Fi Version Time is now: 8th September 2008 - 10:51 AM