Lars
I got it working a treat. Thanks very much. This is what I ended up with: echo "<pre>This\tis\ta\ttest.</pre>"; and I simply added a PRE tag to the CSS file which has the same attributes as the body tag. Thanks very much for your patience Lars. -- ----------------------------- Michael Mason Arras People www.arraspeople.co.uk ----------------------------- "Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Harlequin wrote: > > > Cheers Lars. > > > > So, for example, if I wanted to display some plain text tabbed I'd use: > > > > echo "<pre>string1\tstring2\tstring3</pre>"; > > > > There's just one problem though - it formats the text differently to the > > rest of the page (I'm using CSS to control this). > > > > Any thoughts...? > > > > > Try adding 'white-space: pre;' to the CSS for that bit: > > <div style="white-space: pre;"> > <?php echo "This\tis\n\ta test."; ?> > </div> > > See if adding that helps. > > > Cheers, > > Torben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php