Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Leaving a space inside a text box

    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

  • #2
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    404
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    /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
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    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
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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: Processing form in new window onclick

    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.
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •