Textarea Adding Space To Beginning of Text?
Posted
by Jascha
on Stack Overflow
See other posts from Stack Overflow
or by Jascha
Published on 2010-03-16T19:02:47Z
Indexed on
2010/03/16
19:11 UTC
Read the original article
Hit count: 294
I'm having a strange problem in that I have php inserting text into a <textarea>
and the <textarea>
is adding one white space to the top of my text.
I created an example page to display the problem... here it the code behind the page.
<textarea style="width:600px;height:100px;"><?php get_film_info('main description'); ?></textarea>
<br>
<textarea id="mainDescription style="width:600px;height:100px;">Text just typed in</textarea>
<br>
<?php get_film_info('main description'); ?>
You can see that without the <textarea>
tag, the text does not include the indent. My database also reflects no indent, as well as the php output outside of the <textarea>
...
Any clue what could be going on?
-J
© Stack Overflow or respective owner