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 11:46:45 -0400

>>> <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>
>
>no: there's nothing in HTML 4.0 to insert your  <P> ... </P>
>(which makes no difference to how Lynx renders it anyway).  Lynx renders

I was thinking that DIV could only contain %block%, which would imply that the
text is inside a <P> element.  However, it allows %flow%, which includes text.

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

Which ?should? be rendered
                          line 1
                          line 2

end of test


--
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]