Chapter 9. Positioning

9.1.5. Element Visibility
<html>
<body bgcolor=”gray”>
<P>
This is a paragraph which should be visible. Lorem ipsum, dolor sit amet,
<EM>consectetuer adipiscing elit, sed diam nonummy nibh </EM>
euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
</P>
</body>
</html>

9.1.5
9.2. Relative Positioning

<html>
<body bgcolor=”gray”>
<P>This is a paragraph which should be visible. Lorem ipsum, dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut
laoreet dolore magna aliquam erat volutpat.<EM>Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea

commodo consequat.</EM>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla

<B>facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum</B> zzril delenit augue duis dolore te feugait nulla facilisi.
</P><br>
<P>This is a paragraph which should be visible. Lorem ipsum, dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut
laoreet dolore magna aliquam erat volutpat.
<EM>Ut wisi enim ad minim veniam, <B>quis nostrud exerci tation ullamcorper</B>
suscipit lobortis nisl ut aliquip ex ea commodo consequat.</EM>
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse
molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros
et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril
delenit augue duis dolore te feugait nulla facilisi.</P>
</body>
</html>

9.2
9.3. Absolute Positioning

<html>
<body bgcolor=”lime”>
<B STYLE=”position: absolute; top: auto; right: 0; bottom: 0; left: auto; width: 8em; height: 4em;”>
Consider the example in Figure 9-19. It shows two paragraphs that contain identical text. However, the first paragraph contains an inline boldface element,

and the second an absolutely positioned boldface element. In the second paragraph, the styles used would be something like what is shown here:</body>
</html>

9.3<html>
<body bgcolor=”gray”>
<P STYLE=”position: absolute; top: 0; right: 25%; left: 25%; bottom: auto; width: 50%; height: auto; background: silver;”>
Consider a case where the element being positioned is a child of the BODY element, e.g., a paragraph or heading element. With the right styles, the

containing block for the positioned element will be the entire BODY element. Thus, applying the following styles to the BODY and the fifth paragraph in a

document would lead to a situation similar to that shown in Figure 9-20: </P>
<P> Lorem ipsum, dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut <SPAN>***</SPAN>laoreet dolore magna

aliquam erat volutpat.</P><P> Lorem ipsum, dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut <SPAN

CLASS=”change”>***</SPAN>laoreet dolore magna aliquam erat volutpat.
</P>
</body>
</html>

9.3.1