Click to See Complete Forum and Search --> : [RESOLVED] Descendant selectors not working with ASP extension?!


smurlin
05-08-2006, 05:37 PM
Hi-

I have a CSS sidebar menu that uses descendant selectors (an ID in the 'body' tag and one in the 'a' tag) to turn on links if the ID in the page matches the selector in my stylesheet. Everything works fine as long as the extension in the link to be turned on isn't .asp. This is the oddest behaviour and I'm absolutely stymied!

Has anyone ever encountered this before? I'm using a code structure identical to that in "CSS Cookbook". Example pages as follows:

http://www.coalescentdesign.com/dev/dtm/2006/_business/assessment.asp
This page works as the "on" link in the sidebar ends in ".html"

http://www.coalescentdesign.com/dev/dtm/2006/_business/accounting.asp
This link doesn't turn on as the link has the ".asp" extension

I've tried other extensions and the code works fine (ie. php, aspx, etc). I have to use .asp for these pages - .aspx is not an option.

Also, the behaviour is the same across multiple browsers...is this some weird server issue or am I missing something else?

Thanks,
Smurlin

David Harrison
05-08-2006, 05:57 PM
Get rid of the :link part of the selector.

smurlin
05-08-2006, 06:04 PM
Duh! Thanks so much...needed a fresh set of eyes.

Cheers,
smurlin

David Harrison
05-08-2006, 06:24 PM
Happy to help. :)