Posted by Adrienne Boswell on 03/08/06 09:41
Gazing into my crystal ball I observed google@rbtbowers.com writing in
news:1141791525.349526.87410@i39g2000cwa.googlegroups.com:
> When I view the following in a browser window, the text is not
> vertically centered (text is at the top of the window) but in Print
> Preview, the text is vertically centered. How can I have the text
> be centered in both?
>
> Thanks for your help,
> Robert
>
>
You need a Doctype declaration - new pages should use Strict.
<http://www.w3.org/TR/html4/struct/global.html#h-7.2>
><HTML>
> <HEAD>
> <TITLE>My Web Page</TITLE> </HEAD>
>
> <BODY scroll=yes>
There is no scroll attribute for the Body element.
>
> <div align="center">
Align is deprecated <http://www.w3.org/TR/html4/present/graphics.html#adef-
align>. Use CSS.
> <table height="75%" border="0" bgimage="../pics/frame_back.jpg">
There is no attribute height for the table element
<http://www.w3.org/TR/html4/struct/tables.html#edef-TABLE>.
> <tr>
> <td>
> <font size="6"><p align="center">Text Line
> 1</p></font><br><br>
Font element is deprecated. See above for align attribute. What is the
purpose of placing two br elements after a p element. Change the margin
for the p element through CSS.
> <font size="5"><p align="center">Text Line
> 2</p></font><br><br>
<snip rest>
You will do better using CSS. Try Googling for vertical center css.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Navigation:
[Reply to this message]
|