PDA

View Full Version : Leaving a space inside a text box



dhtmlhelp
07-12-2002, 04:46 PM
Hi,

I have a search box and I would like the text to be displayed a bit to the right by one or two spaces. I would like it to work also when text is inputed inside the text box. At the moment the text is adjacent to the left side of the box and looks untidy. How can I achieve this, where do I place the **&nbsp** ?

how can I put it. Picture a search text box; when you put the cursor in the text box it's all to the left (unless you are chinese I suppose). Anyway I would like the cursor to be displayed at a distance of **&nbsp** of the left side of the text box?

is this any clearer.

<form method="post" name="frmEnquiry" action="asp/ezineindex.asp" onSubmit=" NewWindow('','frmEnquiryWin',400,300,'','center');

" target="frmEnquiryWin">
<input type="text" name="email" size="20" value=" ... La Mia Email ..." onFocus="if(this.value==' ... La Mia Email ...')this.value='';" class="box3" onMouseOver="this.className='box3b'" onMouseOut="this.className='box3'" onClick="this.className='box3b'">
<input type="submit" value=" >> ISCRIVIMI! " style="color: #F4F4F4;border-color: #3163B7;border-width:2;background-color: #356CC8;width:120;height:17;font-family:Verdana;font-size:7pt;font-color:#000000;">
</form>


DHTMLHELP

Feyd
07-12-2002, 05:53 PM
Add style="padding-left : 10px;" to your textbox, or you can add the padding to the box3 class (and any other relevant classes) to achieve the same effect. And you can change 10px to whatever you want.

justame
07-12-2002, 05:54 PM
/me just a whispers® to dht...
ummm is /me just a losing® it morrre than she thought she was??? /me coulda just a swore® this thread had replies in it???
orrr did you just a delete® thattt thread n' start yet just a nother® one ???

joh6nn
07-12-2002, 06:10 PM
actually, he deleted the thread twice, justame.

boxer_1
07-12-2002, 07:57 PM
Originally posted by joh6nn
actually, he deleted the thread twice, justame.

I informed dhtmlhelp of the downside of deleting his threads after there have been a multitutde of replies here: http://www.codingforums.com/showthread.php?s=&threadid=1063

Just my opinion though, and I guess it differs from that of dhtmlhelp :rolleyes: ! When you receive help here, you should not only consider it help for yourself, but leave the threads / replies in place for other members to benefit from. Again, IMHO ;). Besides, it helps eliminate confusion and lets others build on existing replies.

dhtmlhelp
07-12-2002, 08:55 PM
Hi everyone,

I think I owe you an explanation.

First of all thanks to you all for your help and for providing the solution.

The reason I deleted the thread twice is that some users misunderstood the post and was trying to clear the information. While I am very greatful to all users who submit their opinions I always include what other users have contributed if I delete a post. This is to avoid having a 2/3 pages thread and a confusing line of thought.

I consider this excessive cleansiness mania to be partly my contribution to codingforums.

I welcome your thoughts.

enjoy your work,

DHTMLHELP