Tidy strips <center> tags within <p> tags

Mike Breiding - Morgantown WV <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
Can anyone tell me why Tidy is stripping the <CENTER> tags and how to 
prevent it?I am using tidy from within NoteTab 4.95
I am not sure what version of Tidy I have but it was downloaded in the last 
8 months and the files size is 304K.

Thanks,
-Mike
=======HTML===========
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html 
xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta name="DESCRIPTION" content="" />
<meta name="keywords" content="" />
<meta http-equiv="content-type" content="text/html; charset=us-ascii" />

<title>Images</title>
<link rel="stylesheet" href="sampler.css" type="text/css" />
<!--[if IE]><style type="text/css">html .wrapper, html .columns-float,html 
..menu, html .content,html h2 {p\osition: relative;}</style>
<![endif]-->
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>**H1**</h1>
<h2>**H2**</h2>
<h3>**H3**</h3>
</div>

<div id="gallery">
<div id="content">
<img src="001_dolly_sods_2006.jpg" width="640" height="480"  title="" 
alt="" /><p><center>001_dolly_sods_2006.jpg (640x480; 41929 bytes)</center></p>
<img src="002_dolly_sods_2006.jpg" width="360" height="480"  title="" 
alt="" /><p>002_dolly_sods_2006.jpg (360x480; 23360 bytes)</p>
<img src="003_dolly_sods_2006.jpg" width="640" height="480"  title="" 
alt="" /><p>003_dolly_sods_2006.jpg (640x480; 45585 bytes)</p>
<img src="004_dolly_sods_2006.jpg" width="360" height="480"  title="" 
alt="" /><p>004_dolly_sods_2006.jpg (360x480; 30266 bytes)</p>
</div>
</div>

<div id="footer">
Photos and text&nbsp;&copy; <a 
href="mailto:%6d%69%6b%65%40%6d%62%72%65%69%64%69%6e%67%2e%75%73">Mike 
Breiding</a> September 30, 2006 -- 7:24:52 AM
</div></div></body>
</html>

========CSS===========
html{margin:10px 0px 5px 0px;padding:0;}

body{background-color:#fff;color:#000; font: 100%/1.3 Georgia,'Times New 
Roman',Times,serif;padding:0 0 0 9px;}

br.both {clear:both; }

img {border: solid #000 1px}
img {display: block; margin: 20px auto; text-align: center;  }

ul{color: #000; font-size: 95%;line-height: 1.6; list-style-type: 
square;margin: 0 0 0 30px; padding-top: 20px; }

/*li{margin: 0; padding: 0; } li a {color:#330000;  text-decoration:none}li 
a:hover {color:#000;  text-decoration:underline}*/

li.link{margin-left: 40px; padding: 0; }

li.link a {color:#330000;  text-decoration:none}

li.link a:hover {color:#000;  text-decoration:underline}

li.title{margin: 0; padding: 0; list-style-type: none; }

li.title a {color:#330000;  text-decoration:none}

li.title a:hover {color:#000;  text-decoration:underline}

li.title strong {font-size: 105%;line-height: 1.6}

h1{color:#999933;margin:0;padding:10px 0 0 0;font-size:90%;}

h2{background:transparent;font: 250% "Times New Roman", Times, 
serif;color:#CCCC66;margin:0;padding:0;}

h3{text-align:center;background:transparent;color:#999933;font-size:150%;fon 
t-weight:200;margin:0;padding:0px 0 15px 0;clear:both;}

h4 {margin : 0 0 0 40px;padding-top:0;}

div#header{color:#000000;border:none;background:#274F00;margin:0;padding: 
0;text-align:center;width:100%}

div#header, div#gallery, #content {position:relative}

div#gallery p {text-align: left;margin: 10px 0 10px 0;font: 100%/1.3 
Georgia,'Times New Roman',Times,serif}

div#gallery a
{font: 100%/1.3 Georgia,'Times New 
Roman',Times,serif;color:#03BD93;text-decoration:none;font-weight: bold}
div#gallery a:link {color:#274F00;}
div#gallery a:visited {color:#0386BD;}
div#gallery a:hover {text-decoration:underline;}

p.source {font: 90%/1.3 'Times New Roman',Times,serif; text-align:left;}

div#content{width: 60%; margin-left:20%; margin-bottom: 50px}
div#content {font: 100%/1.3 Georgia,'Times New Roman',Times,serif}
div#content  a:link 
{color:#996633;text-decoration:none;font-weight:bold;font-size:95%}
div#content  a:visited 
{color:#996633;text-decoration:none;font-weight:bold;font-size:95%}
div#content  a:hover 
{color:#996633;text-decoration:underline;font-weight:bold;font-size:95%}

div#backtotop
{text-align: center}
div#backtotop li
{display: inline; font: 120%/1.3 Georgia,'Times New Roman',Times,serif}
div#backtotop
{margin-bottom: 0px}

div#wrapper{color:#000000;border: 1px solid #ddd; width:99%;}

div#footer
{clear:both;color:#fff;background:#96A274;border:none;font:90% Georgia, 
"Times New Roman", Times, serif;margin:0 auto;padding:3px 
0;text-align:center;width:100%;}

div#footer a:link, div#footer a:visited, div#footer a:hover
{color:#FFF;margin:0;padding: 0;padding-left: 3px; padding-right: 6px}

div#footer a:hover
{color:#000;margin:0;padding: 0;padding-left: 3px; padding-right: 6px}

div#footer p
{padding-top: 14px;}

div#lists
{margin: -25px auto 50px auto; padding-bottom: 20px; width: 601px;}

div#head
{border-top: 1px solid #c0c0c0;   border-bottom: 1px solid #c0c0c0; 
padding: 10px 0px;   text-align: center;width: 100%;}

div#head p
{font: 150%/1.3 'Times New Roman',Times,serif;padding-top: 6px; }

div#contain
{width: 100%;float: left;margin-right: -300px;}

div#content-a
{border-right: 1px solid #c0c0c0;margin-right: 290px;}

div#content-b
{width: 300px;float: right;}

div#content p
{margin-top: -5px}

div#content em
{font: 100%/1.3 'Times New Roman',Times,serif;padding-top: 6px; font-style: 
italic; letter-spacing: 1.0px }



----------
Check it out:
www.EpicRoadTrips.us
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.