NArc0t1c Posted September 14, 2007 Share Posted September 14, 2007 Hello. Basically what I am trying to do is have a textbox that would have an image in it. I have that part done, but what can I use to move the starting point of the text? Example: ____________ Start Here | This is my current script: <html> <head> <style type="text/css"> body { background-color: #FFF; color: #00; font-family: Tahoma; font-size: 12px; } input { border: solid; border-color: #CCC; border-width: 1px; height: 20px; color: #ccc; } input:focus { border-color: #333; color: #333; } .input_name { background: url(input_name.jpg); background-repeat: no-repeat; } .input_key { background: url(input_key.jpg); background-repeat: no-repeat; }</style> </head> <body> <form> <input type="text" class="input_name"> <input type="text" class="input_key"> </form> </body> </html> Thankyou in advance. Ferdi Link to comment https://forums.phpfreaks.com/topic/69344-solved-moving-text-in-text-box/ Share on other sites More sharing options...
micah1701 Posted September 14, 2007 Share Posted September 14, 2007 padding-left: 10px; /* or whatever distance you want */ Link to comment https://forums.phpfreaks.com/topic/69344-solved-moving-text-in-text-box/#findComment-348416 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.