IE Dropdown & Div Background Image Problems

Discussion in 'CSS' started by chandler.vdw, Jul 19, 2006.

  1. #1
    the website I'm currently working on (www.umedplans.com/index2.php) is getting screwy in IE, of course :mad: . I validated all my html at W3C, as well as my CSS.

    I'm implementing a bit of an ie hack in my header:
    <link href="/css/test.css" rel="stylesheet" type="text/css" media="screen"/>
    <!--This Conditional Comment tells IE/Win only to read from a different style sheet that has the hacks in it-->
    		<!--[if IE]>
    			<link rel="stylesheet" type="text/css" href="/css/iehacks.css" />
    		<![endif]-->
    Code (markup):
    I'm using it to refer to another stylesheet which is explicitly for IE.

    Unfortunately, I'm having problems implementing a css dropdown for IE. It works properly in Firefox (the only one is implemented under "Products" menu item). I had it working before I validated my html & css, and I believe that had something to do with it.

    Also, IE tells me there is an error on the page, and I think it has to do with some javascript I am using to allow for transparent PNGs in IE, both in the foreground and as background images of divs. It's parsing through the images correctly, I think, but then they disappear and I'm left with a solid colored bg in my divs.

    I think the javascript is screwing up IE somehow, and giving me this error:
    Line: 3
    Char: 2
    Error: 'document.getElementByld(...)' is null or not an object
    Code: 0

    Any suggestions on any of these issues? Dropdowns, bg div images, or the error in IE?
     
    chandler.vdw, Jul 19, 2006 IP