Jump to content

[SOLVED] Problem with text in textarea box


scarlson

Recommended Posts

I am pre-loading data from mySQL into a bunch of textarea boxes.  The problem is, is that the text is coming up centered inside the textarea box and not aligned left.  I have tried to use the align = "left" but that didn't help it at all.  I do have a <center></center> wrapped around the whole form, would that be causing it?

 

Here is an example of one of my textarea boxes.

 

<label>Baby Girl Clothes
   <textarea name="tod_girl_clothes" id="tod_girl_clothes" cols="45" rows="5" align="left">  
   <?php echo $itemsid_array['tod_girl_clothes'] ?></textarea>
          </label>

Link to comment
Share on other sites

I tried both suggestions and that didn't work.  BUT when I moved my <?php  line all the way to the left hand side of my codes space it moved my text over to the left as well.  However, I only have data loading into 2 of the textboxes first for testing but one of them is correct and the other one has a line return first then the data aligned to the left.

 

 

<table width="200" border="1" bordercolor="#000000">
      <caption>
        Please list items in the correct category
      </caption>
  <tr>
        <td>
          <label>Baby Girl Clothes
   			<textarea name="tod_girl_clothes" id="tod_girl_clothes" cols="45" rows="5" style="text-align:left;">  
<?php echo $itemsid_array['tod_girl_clothes'] ?></textarea>
          </label>

        </td>
    <td>
      <label>Baby Boy Clothes
        <textarea name="tod_boy_girls" id="tod_boy_girls" cols="45" rows="5" style="text-align:left;">
<?php echo $itemsid_array['tod_boy_clothes'] ?></textarea>
          </label>
      
    </td>
      </tr>

 

The first textarea box is the one showing the line return first then the data and the next textarea box is showing the data correctly.

 

Any ideas?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.