W3C home > Mailing lists > Public > www-talk@w3.org > May to June 1995

Re: Avoiding a blank line.

From: lilley <lilley@afs.mcc.ac.uk>
Date: Wed, 3 May 1995 16:05:45 +0100 (BST)
Message-Id: <2617.9505031505@afs.mcc.ac.uk>
To: charlab@embratel.net.br
Cc: 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."   François Yergeau        |
+-------------------------------------------------------------------+
Received on Wednesday, 3 May 1995 11:06:39 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 16:08:17 UTC