Web Analytics Made Easy -
StatCounter Leaving a space inside a text box - CodingForum


No announcement yet.

Leaving a space inside a text box

  • Filter
  • Time
  • Show
Clear All
new posts

  • Leaving a space inside a text box


    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;">


  • #2
    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.
    Moderator, Perl/CGI Forum
    shadowstorm.net - subvert society


    • #3
      /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 ???
      The New JustaBuster Version 2.0 OR JustaBusta Lite V2.0
      ...just a special® thanx kinda hugs to jkd n' nex ...:O)))

      CommemorateWTC.com --Please lend your support


      • #4
        actually, he deleted the thread twice, justame.
        bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

        i am a loser geek, crazy with an evil streak,
        yes i do believe there is a violent thing inside of me.


        • #5
          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.codingforum.net/showthrea...&threadid=1063

          Just my opinion though, and I guess it differs from that of dhtmlhelp ! 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.
          CodingForum Moderator
          "How did a fool and his money get together in the first place?"


          • #6
            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 CodingForum.

            I welcome your thoughts.

            enjoy your work,