By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,397 Members | 1,417 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,397 IT Pros & Developers. It's quick & easy.

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

P: 17
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.......
Oct 1 '08 #1
Share this Question
Share on Google+
3 Replies


Expert 100+
P: 397
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.
Oct 1 '08 #2

P: 17
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
Oct 1 '08 #3

Expert 100+
P: 397
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.
Oct 1 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.