DotDragnet
May 22, 2012, 01:27:18 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Mobile users - Our forum is Tapatalk enabled. http://www.tapatalk.com/
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: IE7 not playing ball with CSS selectors  (Read 1090 times)
fordie
Global Moderator
Sr. Member
*****
Posts: 329


<span id="attention" class="short">...</span>


View Profile Awards
« on: January 14, 2008, 02:02:23 PM »

can anyone see why seven wouldn't like the adjacent sibling selectors in this rule? The hover bit works fine. This is driving me mad. IE7 does support CSS 2.1 selectors right?  unsure

Code:
td.vevent:hover div,  td.vevent a:focus + div,  td.vevent a:active + div
 {
  display:block;
 }
Logged
Mr Anderson
DDN Contribs
Hero Member
*****
Posts: 2267



ap4a.uk ap4a
View Profile WWW Awards
« Reply #1 on: January 14, 2008, 04:01:11 PM »

can anyone see why seven wouldn't like the adjacent sibling selectors in this rule? The hover bit works fine. This is driving me mad. IE7 does support CSS 2.1 selectors right?  unsure

Code:
td.vevent:hover div,  td.vevent a:focus + div,  td.vevent a:active + div
 {
  display:block;
 }


Yes it supports adjacent sibling selectors - whether it supports them while a pseudostate is active is another matter.


Logged

fordie
Global Moderator
Sr. Member
*****
Posts: 329


<span id="attention" class="short">...</span>


View Profile Awards
« Reply #2 on: January 14, 2008, 04:42:59 PM »

Thanks mate. I was trying to avoid it, but I think I'll have to resort to a spot of javascript to get this to be keyboard accessible on IE and just accept the fact that it'll look pants if js is switched off.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!