lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev <center> inserts <p>


From: Greg Marr
Subject: Re: lynx-dev <center> inserts <p>
Date: Thu, 17 Sep 1998 08:53:18 -0400

At 03:37 AM 9/17/98 -0400, you wrote: 
>for the past few months Yahoo's Reuter/AP stories have annoyingly
>contained a long list of links spaced down the centre of the screen:
>today, this has been cleaned up due to revised HTML. 
>the problem was in fact how Lynx 2-8pre.2 renders 

>Lynx is adding the equivalent of <P> after each centred line.
>i'm willing to investigate further in the HTML specs,
>but first does anyone have any comments?

According to the HTML specs, <CENTER> is shorthand for <DIV ALIGN="CENTER">.

Thus, 
<HTML>
<HEAD><TITLE>Test page: centring & line spacing</TITLE></HEAD>
<BODY>
<center>line 1</center>
<center>line 2</center>
end of test
</BODY></HTML>

is really

<HTML>
<HEAD><TITLE>Test page: centring & line spacing</TITLE></HEAD>
<BODY>
<DIV ALIGN=center><P>line 1</P></DIV>
<DIV ALIGN=center><P>line 2</P></DIV>
<P>end of test</P>
</BODY></HTML>

So, lynx is rendering this correctly.

To do this without any paragraph breaks, it should be

<HTML>
<HEAD><TITLE>Test page: centring & line spacing</TITLE></HEAD>
<BODY>
<DIV ALIGN=center>
<P>
line 1<br>
line 2<br>
</DIV>
<P>
end of test
</BODY></HTML>

--
Greg Marr
address@hidden
"We thought you were dead." 
"I was, but I'm better now." - Sheridan, "The Summoning"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]