W3C home > Mailing lists > Public > www-validator@w3.org > April 2005

how to center a table

From: Fellowship Bible Church <fbchurch@gsinet.net>
Date: Thu, 21 Apr 2005 16:13:42 -0400
Message-ID: <000d01c546ae$9d309db0$0400a8c0@4cvbf01>
To: <www-validator@w3.org>
Cc: "Fellowship Bible Church" <fbchurch@gsinet.net>

I am using CSS and I would like to center a table.
I put <p class="center">  before my table and </p> after the closing table
The validator didn't like this - it thought I was using a closing </p> tag
for an element never opened.

Here is the error message:

Below are the results of attempting to parse this document with an SGML

  1.. Line 86, column 38: end tag for element "P" which is not open

  <!--End of Sermon Table--> </table></p>

Here is the code - Can anyone help?

  <title>table test</title>

  <meta http-equiv="description" content="church religion bible">

<meta name="keywords" content="Fellowship Bible, Fellowship Bible Church,
New Hampshire, Chester NH, Chester New Hampshire, Reformed,
Fundamental, Church, Reformed Church New Hampshire, Gospel, Bible Church,
Christian, Dispensational,  Expository, Evangelistic, Fundamentalist" /

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link rel="stylesheet" media="screen" href="fbc.css" type="text/css">

<link rel="stylesheet" media="print" href="print.css" type="text/css">



<div id="top">
<img src="jpg/photobanner.jpg" width="742" height="140" alt="photobanner" />

<div id="left"><br />
<a href="index.html">Welcome</a><br /><hr />
<a href="findus.html">Find Us </a><br /><hr />
<a href="doctrinal.html">Our Doctrine</a><br /><hr />
<a href="purpose.html">Our Purpose</a><br /><hr />
<a href="pastors.html">Our Pastors</a><br /><hr />
<a href="pastoral_position.html">Pastoral Position Open</a><br /><hr />
<a href="leadership.html">Leadership</a><br /><hr />
<a href="articles.html">Articles</a><br /><hr />
<a href="sermons.html">Sermons</a><br /><hr />
<a href="salvation.html">How Can I Be Saved?</a><br /><hr />
<a href="contactus.html">Contact Us</a><br /><hr />
<a href="sundayschool.html">Sunday School</a><br /><hr />
<a href="worship.html">Worship Services</a><br /><hr />
<a href="adultministries.html">Adult Ministries</a><br /><hr />
<a href="missions.html">Missions</a><br /><hr />
<a href="weddings.html">Weddings</a><br /><hr />
<a href="funerals.html">Funerals</a><br /><hr class="maroon" />
<a href="members.html">Registered User</a><br /><hr class="maroon" />

<div id="main">

      <!-- Insert Text Below this point -->

<!--Sermon Table-->

<h3 class="center">Sermons</h3>

<p class="center"><table border="1" cellpadding="8" cellspacing="10">

<tr> <td>Feb. 6, 2005</td>
 <td><a href="sermonfeb6.html" class="main">Denials and


<tr> <td>Feb. 20, 2005</td>
<td><a href="sermonfeb20.html" class="main">His Blood Be On Us</a></td>


<tr> <td>Feb. 27, 2005</td>

 <td><a href="sermonfeb27.html" class="main">Will You Bear His


<!--End of Sermon Table--> </table></p>

      <!-- Insert Text Above this point -->


<div id="footer">
<a href ="contactus.html" class="footer">Contact Us</a> |
<a href="index.html" class="footer">View our Welcome Page</a> |
<a href ="contactus.html" class="footer">Contact Webmaster</a>

<p class="center">
      <a href="http://validator.w3.org/check?uri=referer"><img
          alt="Valid HTML 4.01!" height="31" width="88"></a>


Here's the actual address


Barbara Delorey,
Church Secretary and Webmaster
Fellowship Bible Church
Chester, NH
Received on Thursday, 21 April 2005 20:26:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:45 UTC