View Single Post
  #1  
Old 08-22-2006, 04:18 PM
 
Hunabku Hunabku is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 47
 

Red face .htc file or "conditional comment" not recognized

I am trying to implement the vertical drop-down CSS menus as coded by http://www.tanfa.co.uk/css/examples/menu/tutorial-v.asp

I can get it to work fine in an html file on my server, but when i try and insert the head code into home.tpl - no go. To the best of my knowledge the conditional comment or the call to the .htc file is not being interpreted correctly.

Below is the relavent code from the head tag of my home.tpl
Code:
{literal} <!--[if IE]> <style type="text/css" media="screen"> #nav ul li {float: left; width: 100%;} </style> <![endif]--> <!--[if lt IE 7]> <style type="text/css" media="screen"> body { behavior: url(/xcart/skin1/skin1_csshover.htc); font-size: 100%; } #nav ul li {float: left; width: 100%;} #nav ul li a {height: 1%;} #nav a { font: bold 0.7em/1.4em arial, helvetica, sans-serif; } </style> <![endif]--> {/literal}

my home page is http://amazonmedicine.com/xcart/home.php

please note that the "<!--[if IE]>" is a "conditional comment" to handle exceptions with internet explorer - I think it is the IE 7 conditional that is not working because other versions of IE seem to be working. If the conditional is working then the reference to the .htc file is not being interpreted. FYI the .htc file modifies how the css is translated/executed. Yes permissions are 777 on the .htc file for what it is worth.

thanks for any insights or general guidance
__________________
Version 4.1.3
Reply With Quote