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

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

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

Post 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;
}
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

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

Post by kaszu »

Try padding-left instead of text-indent.
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

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

Post by Sindarin »

I had to change the textfield's position as well but it worked. Thanks.
Damn you Microsoft! Fix those CSS bugs already!
Post Reply