I have this textarea form field.
Now when I save it and output the content texts.
It doesn’t left align.
How to left align?
I knew this before I just forgot.
Thanks in advance.
Below are the samples codes that output the content of the textarea
from MySQL database.
The $var[‘description’] is the variable that holds the textarea content/texts.
foreach ( $output_rec as $var ) {
echo '<b>';
echo "<br>", $var['id'], "\t", $var['appsite'];
echo '</b>';
echo "<br>", $var['description'];
echo '<br><br><hr>';
}
You’ve shown us only a small snippet of code which gives no clue as to what is wrong.
Text will usually be left-aligned by default, so what are you doing elsewhere so that it is not left-aligned here?
Alignment is more of a CSS thing. It would be a case of adding a class to a containing element, and a css rule to go with it.
Though by default things should align left, so the must be something some where telling it otherwise which could maybe be fixed.
I’m thinking also the html could maybe have better semantics.
super_noob:
It doesn’t left align.
What does it do?
But, as everyone else said, in isolation there’s no way to know what it’s doing.
system
Closed
August 24, 2018, 4:18pm
5
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.