I am working on a website and on the top navigation bar there is a search box, I applied the following css on the search submit button
#submit {
background: url("img/new-search-icon.png") no-repeat scroll -1px 0 #FFFFFF;
border:0 none;
cursor:pointer;
display:block;
height:21px;
padding:0;
position:absolute;
right:0;
text-indent:-9999px;
top:0;
width:20px;
z-index:2;
}
My Problem is in IE7 the text indent is not working please help me if you want to see the demo you can view it by clicking here Click here. Please help me.
Don't use
text-indent
. Try this one instead:Works in all browsers including IE6.
Add this CSS to make IE7 behave:
Crazy but true.
este é um exemplo simse
The solution that I found to my text-indent woes in IE7, and something that I feel should be added to this thread is the following:
Doesn't work:
Does work:
I didn't know there was a limit? I guess there is.
text-transform: capitalize; actually had no effect for me (it was happening on a tags), but this worked
If nothing else works exactly right, this does:
So normal browsers use the negative text-indent, ie7 gets special treatment using conditional comments