views:

159

answers:

1

Yes, another stupid IE6 problem. Unfortunately i cannot turn a blind-eye to this one. The input button is not showing up in IE6 but is working in all other browsers and the layout is breaking as well. Any advice would be greatly greatly appreciated

to see the problem online - please visit: http://chickenofthesea.com/company.aspx - again, i am only seeing the problem in IE6. as it's loading, it's inline but when the page is done loading it breaks. on the homepage it seems to be working fine... Any help would be great!

here is the code for the search field:

<li class="inputSearch">
    <input type="text" id="search" runat="server" title="search" value="search" class="fieldSearch" onfocus="Clear()" onkeydown="testEnterKey(event);" />
    <div class="buttonSearch">
        <input type="image" src="media/images/layout/button-search.png" name="btnSearch" id="btnSearch" onclick="javascript:return SubmitSearch();" />
    </div>
</li>

here is the CSS affiliated with these fields:

.inputSearch {
background: transparent url('../../media/images/layout/bg-search.png') no-repeat top left;
width:99px;
height:27px;
color:#000;
font-size:12px;
padding:6px 0px 7px 10px;
position:relative;
left:0px;
display: block;
}
.fieldSearch {
border:none;
color:#000;
width:85px;
}
.buttonSearch {
position: relative;
display: inline;
left:0px;
top: 9px;
}
.navspace {
margin: 0 5px 0 5px;
}

in an ie.css stylesheet this is added as well:

#topnav ul li.inputSearch{ width:109px; float:left; top:-4px; padding-bottom:0; padding-top:5px;}
A: 

alright i think got it all fixed now...

the search box was breaking due to using 'jquery.pngFix.js'. tweaked the code to not apply transparency to the search box background alone - and shazaam it's displaying inline.

aaron b
Sounds like it's a `HasLayout` issue. I don't know about `jquery.pngFix.js` but I assume it uses the ActiveX CSS filter trick to render PNGs with alpha transparency, but I'm pretty sure a side effect of that is that it will give the element "Layout". (This whole `HasLayout` mess and its effects on the actual layout of your page is the most horrible, non-standard quirk of IE's rendering engine.)
Daniel Pryden
the jquery.pngFIX.js file was applying the png alpha fix to all pngs on the site - just had to exclude the background image for the search bar image and that seemed to do the trick. thanks for your input @Daniel!
aaron b