SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2011
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    why is there a lot of "white space" in the imput box of my Textarea imput field.

    hi everyone.

    quick question. i noticed that whenever i use the textarea imput box that there is a lot of 'white space ' when a person clicks into the box.

    i obviously want the mouse pointer to start at the very start of the box and not half way down.

    is there a function to make the mouse start at the beginning.

    i enclose a copy of my imput field below.

    PHP Code:


             <?php echo '<textarea   name="essay"   id="essaylet"        cols="30" rows="15" maxlength="2000"
            style="font-family: Tahoma; width: 620px;    font-size: 12pt"
                />'
    ?>
                
           <?php echo        $ES ?>
                
                <?php echo ' </textarea> '?>

    warm regards

    Andreea 115

  2. #2
    SitePoint Wizard lorenw's Avatar
    Join Date
    Feb 2005
    Location
    was rainy Oregon now sunny Florida
    Posts
    1,104
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    What is $ES ?
    What I lack in acuracy I make up for in misteaks

  3. #3
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    PHP Code:
    <?php echo '<textarea name="essay" id="essaylet" cols="30" rows="15" maxlength="2000" 
            style="font-family: Tahoma; width: 620px;    font-size: 12pt" />'
    ?><?php echo $ES ?><?php echo '</textarea> '?>
    Just format your code properly between the textarea tags. Inspect the HTML source code for the resulting page.

  4. #4
    SitePoint Member blogaddition's Avatar
    Join Date
    Sep 2012
    Location
    India
    Posts
    23
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Use the following code, It may help you out.

    PHP Code:
    <?php echo '<textarea name="essay" id="essaylet" cols="30" rows="15" maxlength="2000" 
            style="font-family: Tahoma; width: 620px;    font-size: 12pt" />'
    trim($ES).'</textarea> '?>


Bookmarks

Posting Permissions

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