Connecting Tech Pros Worldwide Forums | Help | Site Map

Background image on the text box is moving along with data in IExplorer

Newbie
 
Join Date: Jul 2007
Posts: 17
#1: Oct 1 '08
Hi all,
Actually my requirement is to place an image in the text box and it should stand over the data in the text box.

And i made it as

------------------------------------------------------------------------------------------
Expand|Select|Wrap|Line Numbers
  1. <html>
  2.     <head>
  3.     <style>
  4.         .formlabel
  5.         {
  6.         border:0px;
  7.         height:18px;
  8.         width:100%;
  9.         background-color:white;
  10.         font-size:12px;
  11.         }
  12.  
  13.         .dropdn
  14.         {
  15.         background:transparent url(image.gif) no-repeat scroll 100% 40%;
  16.         padding-right:15px;
  17.         }
  18.  
  19.  
  20.     </style>
  21.     </head>
  22.     <body>
  23.         <input  class="formlabel image"  value="None"    name="patienttitle" />
  24.     </body>
  25. </html>
------------------------------------------------------------------------------------------

This is working fine in firefox and not in Explorer.
In explorer the background image is moving along with the data typed
and in firefox the image is always fixed at the end of the text box.

How to stop the image move in IExplorer.

Thanks in advance.......

Expert
 
Join Date: Aug 2008
Posts: 397
#2: Oct 1 '08

re: Background image on the text box is moving along with data in IExplorer


Considering that the markup is invalid, just about anything could be a probable cause. Validate and post a clickable link to the page in question.
Newbie
 
Join Date: Jul 2007
Posts: 17
#3: Oct 1 '08

re: Background image on the text box is moving along with data in IExplorer


Here is the link
http://www.geocities.com/rameshv1210/test_combo.html

and the image on the text field is fixed at the end correctly in firefox

and it is in Explorer image is moving along with data in the text field.

please help me in solving this.

Thanks in advance
Expert
 
Join Date: Aug 2008
Posts: 397
#4: Oct 1 '08

re: Background image on the text box is moving along with data in IExplorer


Sorry. Same story as yesterday. Add a doctype and correct the other remaining 25 markup errors. If the IE browsers still do not handle it correctly on a valid file, bring it back.
Reply