-
Bug
-
Resolution: Fixed
-
P3
-
1.3.0
-
kestrel
-
sparc
-
solaris_2.6
-
Verified
When using <DIV ALIGN=CENTER>, the text is aligned to the LEFT.
Here is a sample HTML file to demonstrate this:
<!DOCTYPE HTML PUBLIC "-//HotJava QA//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Testing HotJava based on the 3.2 html spec</TITLE>
</HEAD>
<BODY>
<h1>Tests Block Level DIV Element</h1>
<h2>Definition</h2><em>DIV elements</em>
can be used to structure HTML documents as a hierarchy of
divisions. The ALIGN attribute can be used to set the default horizontal
alignment for elements within the content of the DIV element. Its value is
restricted to LEFT, CENTER or RIGHT, and is defined in the same way as for
the paragraph element.
<p>Note that because DIV is a block-like element it will terminate an open P
element. Other than this, user agents are not expected to render paragraph
breaks before and after DIV elements. CENTER is directly equivalent to DIV
with ALIGN=CENTER. Both DIV and CENTER require start and end tags.
<p>CENTER was introduced by Netscape before they added support for the HTML 3.0
DIV element. It is retained in HTML 3.2 on account of its widespread
deployment.<p>
<div align=center>Example of a div<p>should aligned be centered</div>
<div align=left>Example of a div<p>should be aligned left</div>
<div align=right>Example of a div<p>should be aligned right</div>
</BODY>
</HTML>
edmund.lou@eng 1999-10-19
Here is a sample HTML file to demonstrate this:
<!DOCTYPE HTML PUBLIC "-//HotJava QA//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Testing HotJava based on the 3.2 html spec</TITLE>
</HEAD>
<BODY>
<h1>Tests Block Level DIV Element</h1>
<h2>Definition</h2><em>DIV elements</em>
can be used to structure HTML documents as a hierarchy of
divisions. The ALIGN attribute can be used to set the default horizontal
alignment for elements within the content of the DIV element. Its value is
restricted to LEFT, CENTER or RIGHT, and is defined in the same way as for
the paragraph element.
<p>Note that because DIV is a block-like element it will terminate an open P
element. Other than this, user agents are not expected to render paragraph
breaks before and after DIV elements. CENTER is directly equivalent to DIV
with ALIGN=CENTER. Both DIV and CENTER require start and end tags.
<p>CENTER was introduced by Netscape before they added support for the HTML 3.0
DIV element. It is retained in HTML 3.2 on account of its widespread
deployment.<p>
<div align=center>Example of a div<p>should aligned be centered</div>
<div align=left>Example of a div<p>should be aligned left</div>
<div align=right>Example of a div<p>should be aligned right</div>
</BODY>
</HTML>
edmund.lou@eng 1999-10-19