How do I preserve the text formatting with IE?

N

noagbodjivictor

I want to preserve how the text looks in the code. It's a <td>
element, so I styled it like this: td#textarea { white-space: pre; }

It's working in FF. But IE6 is getting rid of the first blank line of
my text. This line is necessary.

<td id="textarea"><-- the text does not start on this line
<-- the text starts here, on this line; so, there is a "\n" at the
beginning
</td>

Do you have any idea of how to fix that?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,426
Latest member
MrMet

Latest Threads

Top