Page 1 of 1

IE's text indent in textfield fails... (IE8)

Posted: Tue May 19, 2009 7:43 am
by Sindarin
My HTML and CSS are both validate. Every browser plays nicely except...

Image

Code: Select all

#search-field
{
position:relative;
left:300px;
top:0px;
color:#666666;
width:200px;
height:16px;
font-size:11px;
font-family:Verdana;
border-style:none;
text-indent:21px;
padding-top:3px;
 
background-image:url(../../files/images/searchlabel.png);
background-repeat:no-repeat;
}

Re: IE's text indent in textfield fails... (IE8)

Posted: Tue May 19, 2009 11:24 am
by kaszu
Try padding-left instead of text-indent.

Re: IE's text indent in textfield fails... (IE8)

Posted: Wed May 20, 2009 4:31 am
by Sindarin
I had to change the textfield's position as well but it worked. Thanks.
Damn you Microsoft! Fix those CSS bugs already!