[8125] in www-talk@info.cern.ch
Re: Avoiding a blank line.
daemon@ATHENA.MIT.EDU (lilley)
Wed May 3 12:06:35 1995
Date: Wed, 3 May 1995 11:28:15 +0500
Errors-To: procmaster@www19.w3.org
Reply-To: lilley@afs.mcc.ac.uk
From: lilley <lilley@afs.mcc.ac.uk>
To: Multiple recipients of list <www-talk@www10.w3.org>
Sergio Charlab said:
> If I write according to specifications, and use <P ALIGN=CENTER>
> instead of <CENTER>, I get things centered, but also get a
> blank line, like here:
>
> <HR ALIGN=CENTER SIZE=5 WIDTH=80%>
> <I><P ALIGN=CENTER>2 de maio</I>
You have nearly written to specification, but not quite. You have an hr, so
following text starts on a new line. A new paragraph is implied by your text.
You go into italics. Then you start another new paragraph!
Instead, try
<HR ALIGN=CENTER SIZE=5 WIDTH=80%>
<P ALIGN=CENTER><I>2 de maio</I></P>
> How can I avoid this line? I would prefer to have the HR line and
> the text closer.
The exact spacing depends on how your browser chooses to render this.
> Also, how could I define a blank line for browsers
> other than Netscape, which seems one of the few to accept <P> as
> blank lines, like here:
I think that browsers are at liberty to coalesce multiple empty paragraphs.
You probably want to use <BR>
--
Chris Lilley, Technical Author
+-------------------------------------------------------------------+
| Manchester and North HPC Training & Education Centre |
+-------------------------------------------------------------------+
| Computer Graphics Unit, Email: Chris.Lilley@mcc.ac.uk |
| Manchester Computing Centre, Voice: +44 61 275 6045 |
| Oxford Road, Manchester, UK. Fax: +44 61 275 6040 |
| M13 9PL BioMOO: ChrisL |
| URI: http://info.mcc.ac.uk/CGU/staff/lilley/lilley.html |
+-------------------------------------------------------------------+
| "The first W in WWW will not wait." Frangois Yergeau |
+-------------------------------------------------------------------+