Re: Line Break
| From: | David Robley | Date: | Wed, 14 Feb 2001 03:37:26 +0000 |
| Subject: | Re: Line Break | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39575@lists.php.net to get a copy of this message | ||
On Wed, 14 Feb 2001 14:04, Deependra B. Tandukar wrote:
> Greetings!
>
> I know "\n" gives the new line and "\t" gives the tab. Is there any
> other code for them because this is not working in the web server where
> I host my web pages?
>
> Looking froward to hearing from you.
>
> Regards,
> DT
When you say 'not working' , do you mean that you don't see a line break
in your browser where the \n has been inserted?
This is correct behaviour - \n, \t and multiple space characters are all
treated as white space by browsers and rendered as a single space. If you
want to insert a line break you need to use <BR>, and you can use a
series of to mimic a tab. There are better ways of handling this
using CSS.
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA