tags:

views:

200

answers:

3

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.

A: 

I don´t know if it´s the cause of your problem, but I think your background shorthand notation is wrong; the colour code should be at the start, not the end.

jeroen
A: 

IE7 - 2 method

1 - property "line-height" css:

line-height: 0px;

2 - attr "value" html form:

value=""

-) L.F.Blzr ¨¨¨¨¨¨¨ BRAZIL \o/ (-

Luiz Fernando Bliozer
+1  A: 

Add this attribute to make IE7 behave:

text-transform: capitalize;

Crazy but true.

Kramer