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
tag
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
parser.

  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?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <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">

</head>

<body>

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

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




<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><b>Date</b></td>
  <td><b>Title</b></td>
</tr>

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

</tr>

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

</tr>

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

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

</tr>




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



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


</div>



<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
          src="http://www.w3.org/Icons/valid-html401"
          alt="Valid HTML 4.01!" height="31" width="88"></a>
    </p>
</div>

</body>
</html>

Here's the actual address

http://www.fellowshipbiblechester.org/tabletest.html

Barbara Delorey,
Church Secretary and Webmaster
Fellowship Bible Church
Chester, NH
http://www.fellowshipbiblechester.org
Received on Thursday, 21 April 2005 20:26:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT