Loading ...
Sorry, an error occurred while loading the content.

Tidy strips tags within tags

Expand Messages
  • Mike Breiding - Morgantown WV
    Can anyone tell me why Tidy is tripping the tags and how to prevent it?I am using tidy from within NoteTab 4.95 I am not sure what version of Tidy I
    Message 1 of 12 , Sep 30, 2006
    View Source
    • 0 Attachment
      Can anyone tell me why Tidy is tripping 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 © <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

      [Non-text portions of this message have been removed]
    • loro
      ... Because CENTER or any other block level element isn t allowed in paras. This line means P can only contain inline elements.
      Message 2 of 12 , Sep 30, 2006
      View Source
      • 0 Attachment
        Mike Breiding - Morgantown WV wrote:
        >Can anyone tell me why Tidy is tripping the <CENTER> tags and how to
        >prevent it?

        Because CENTER or any other block level element isn't allowed in paras.

        This line means P can only contain inline elements.
        <!ELEMENT P - O (%inline;)*
        http://www.w3.org/TR/html401/struct/text.html#edef-P

        WDG puts it in plain text.
        Contents Inline elements
        http://www.htmlhelp.com/reference/html40/block/p.html

        Also, CENTER isn't part of (X)HTML Strict. Validation would have told you
        quicker than I did. ;-)

        Lotta
      • sisterscape
        1. As I remember - I m a little rusty, is a block level element and not allowed within . 2. It is also deprecated. Try using
        Message 3 of 12 , Sep 30, 2006
        View Source
        • 0 Attachment
          1. As I remember - I'm a little rusty, <center> is a block level
          element and not allowed within <p>.

          2. It is also deprecated. Try using <p style="text-align: center;">
          instead. Or better yet, don't do inline styles at all. Instead, create
          a class and put it in a separate style sheet.

          sisterscape

          --- Mike Breiding - Morgantown WV <mike@...> wrote:

          >
          > Can anyone tell me why Tidy is tripping 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 © <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
          >
          > [Non-text portions of this message have been removed]
          >
          >
          >
          > CSE HTML Validator Lite - it's free:
          > http://home.earthlink.net/~5wink/dl/cselite652.exe
          >
          > Fookes Software Home: http://www.fookes.us/redir
          >
          > Yahoo! Groups Links
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >


          __________________________________________________
          Do You Yahoo!?
          Tired of spam? Yahoo! Mail has the best spam protection around
          http://mail.yahoo.com
        • Cary Driscoll
          Does Tidy have a setting for telling it to ignore deprecated tags or leave them alone? ... [Non-text portions of this message have been removed]
          Message 4 of 12 , Sep 30, 2006
          View Source
          • 0 Attachment
            Does Tidy have a setting for telling it to ignore deprecated tags or leave them alone?

            > ----- Original Message -----
            > Subject: [NH] Tidy strips <center> tags within <p> tags

            > Can anyone tell me why Tidy is tripping 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


            [Non-text portions of this message have been removed]
          • Lee Underwood
            Not sure about the Tidy problem but, if you re using XHTML, the tag is not allowed. Use either: as an inline style or
            Message 5 of 12 , Sep 30, 2006
            View Source
            • 0 Attachment
              Not sure about the Tidy problem but, if you're using XHTML, the
              <center> tag is not allowed. Use either:

              <p style="text-align: center;"> as an inline style or

              .center {
              text-align:center;
              }

              with <p class="center">

              Lee

              On 9/30/2006 07:34 AM, Mike Breiding - Morgantown WV wrote:
              ........................................................


              >Can anyone tell me why Tidy is tripping 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>
              >
              ........................................................
            • Marcelo de Castro Bastos
              On the last exciting episode, aired on 30/9/2006 08:34, Mike Breiding - ... The problem is you are putting the tags inside the element. and
              Message 6 of 12 , Sep 30, 2006
              View Source
              • 0 Attachment
                On the last exciting episode, aired on 30/9/2006 08:34, Mike Breiding -
                Morgantown WV invited the wrath of the gods by saying:
                > Can anyone tell me why Tidy is tripping 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.
                >
                The problem is you are putting the <center> tags inside the <p> element.
                <p> and <h1>...<h6> elements are a special case of block-level elements
                that can ONLY contain inline elements. <center> is a block element, and
                as such can not be contained inside <p>...</p>

                Furthermore, you should try not to use <center> tags at all. <center>
                has been deprecated, and is only allowed in HTML 4.01 Transitional and
                XHTML 1.0 Transitional. It is NOT allowed in HTML 4.01 Strict or XHTML
                1.0 Strict (which you are trying to use in your example) or newer
                versions of XHTML (such as XHTML 1.1 or the working draft of XHTML
                2.0). Tidy knows it, and will change the DTD heading to Transitional if
                you are using deprecated features. While there are still some occasional
                reasons to use a deprecated feature, it's best to be weaned of them and
                strive for Strict compliance. Oh, and it's good practice to validate
                your pages too.

                In another matter, it's better to stick to HTML 4.01 while you are still
                learning. It's trivial to convert HTML 4.01 code to XHTML 1.0 (they are
                almost identical), but in deploying there are a few points where XHTML
                could bite you back sometime in the future.

                Shortly, the problem is as follows:
                - The recommended way to present a XHTML page to a browser is as a "XML
                Application". This means, among other things, that the browser will
                check if the document is "well-formed" (meaning, no syntax errors) and
                refuse to present it if there are errors.
                - However, Internet Explorer does not know how to deal with XHTML
                presented as a XML Application.
                - Consequently, just every webserver out there (incorrectly) presents
                XHTML in the same way that HTML is presented to the browser, that is, as
                an "HTML Document." Browsers do NOT check those for well-formedness.
                - So, people have been posting bad XHTML code and browsers have been
                showing it, despite it not being well-formed.
                - If sometime in the future most Internet Explorer copies out there
                begin accepting XHTML as XML Application, webserver managers will begin
                to correct their setups and enforce the recommended XHTML standards
                (which in the long run is good for everybody).
                - A lot of XHTML pages that "seemed fine" (but actually contained
                errors) will suddenly start being rejected by browsers. All at once.
                Meaning a LOT of work fixing old pages.
                - So, if you are not SURE that your pages are well-formed, it's good
                insurance for the future to keep them as HTML 4.01.

                Marcelo
              • Marcelo de Castro Bastos
                On the last exciting episode, aired on 30/9/2006 16:17, Cary Driscoll ... You don t need one. If Tidy finds a deprecated tag, it will just change the DTD
                Message 7 of 12 , Sep 30, 2006
                View Source
                • 0 Attachment
                  On the last exciting episode, aired on 30/9/2006 16:17, Cary Driscoll
                  invited the wrath of the gods by saying:
                  > Does Tidy have a setting for telling it to ignore deprecated tags or leave them alone?
                  >

                  You don't need one. If Tidy finds a deprecated tag, it will just change
                  the DTD heading accordingly (for instance, changing a "Strict" DTD to a
                  "Transitional"). In XHTML (but not HTML), it even does the reverse: if
                  it finds the code "looks" compliant, it will upgrade the DTD to Strict.

                  The problem here wasn't the deprecated tag; it was the improper nesting
                  of <center> tags inside <p> tags.

                  Marcelo
                • Cary Driscoll
                  Thanks, Marcelo. I understood that from your previous post. Unfortunately, I had already sent off my response some 4 hours before it finally showed up in the
                  Message 8 of 12 , Sep 30, 2006
                  View Source
                  • 0 Attachment
                    Thanks, Marcelo.

                    I understood that from your previous post. Unfortunately, I had already sent off my response some 4 hours before it finally showed up in the list. I don't know what limbo Yahoo was suspending it in, but I would have cancelled it if I could.

                    ----- Original Message -----
                    Subject: Re: [NH] Tidy strips <center> tags within <p> tags


                    On the last exciting episode, aired on 30/9/2006 16:17, Cary Driscoll
                    invited the wrath of the gods by saying:
                    > Does Tidy have a setting for telling it to ignore deprecated tags or leave them alone?
                    >

                    You don't need one. If Tidy finds a deprecated tag, it will just change
                    the DTD heading accordingly (for instance, changing a "Strict" DTD to a
                    "Transitional"). In XHTML (but not HTML), it even does the reverse: if
                    it finds the code "looks" compliant, it will upgrade the DTD to Strict.

                    The problem here wasn't the deprecated tag; it was the improper nesting
                    of <center> tags inside <p> tags.

                    Marcelo


                    .

                    [Non-text portions of this message have been removed]
                  • loro
                    ... Yeah, I think almost all posts in this thread were delivered in an untimely untimely. It was more than 12 hours before I got my own post back. Lotta
                    Message 9 of 12 , Sep 30, 2006
                    View Source
                    • 0 Attachment
                      Cary Driscoll wrote:
                      >Unfortunately, I had already sent off my response some 4 hours before it
                      >finally showed up in the list. I don't know what limbo Yahoo was
                      >suspending it in, but I would have cancelled it if I could.

                      Yeah, I think almost all posts in this thread were delivered in an untimely
                      untimely. It was more than 12 hours before I got my own post back.

                      Lotta
                    • Mike Breiding - Morgantown WV
                      ... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Thanks to you and all others for the replies. I should have validated before sending my original post. Results from :
                      Message 10 of 12 , Oct 1, 2006
                      View Source
                      • 0 Attachment
                        At 11:13 AM 9/30/2006 , sisterscape wrote:
                        >1. As I remember - I'm a little rusty, <center> is a block level
                        >element and not allowed within <p>.
                        >
                        >2. It is also deprecated. Try using <p style="text-align: center;">
                        >instead. Or better yet, don't do inline styles at all. Instead, create
                        >a class and put it in a separate style sheet. sisterscape
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                        Thanks to you and all others for the replies.
                        I should have validated before sending my original post.
                        Results from : http://validator.w3.org/check are below.

                        The complete line the first error refers to is :
                        =======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">

                        I am not even sure how "=======HTML===========" ended up in the page.
                        Does XHTML require similar tags to the <HTML> </HTML> tags?

                        -Mike
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                        " Below are the results of checking this document for XML well-formedness
                        and validity.

                        1. Error Line 1 column 0: character "=" not allowed in prolog.

                        =======HTML===========

                        ?
                        2. Error Line 24 column 89: element "center" undefined.

                        ...t="480" title="" alt="" /><p><center>001_dolly_sods_2006.jpg
                        (640x480; 41929

                        You have used the element named above in your document, but the
                        document type you are using does not define an element of that name. This
                        error is often caused by:
                        * incorrect use of the "Strict" document type with a document
                        that uses frames (e.g. you must use the "Frameset" document type to get the
                        "<frameset>" element),
                        * by using vendor proprietary extensions such as "<spacer>" or
                        "<marquee>" (this is usually fixed by using CSS to achieve the desired
                        effect instead).
                        * by using upper-case tags in XHTML (in XHTML attributes and
                        elements must be all lower-case."






                        ----------
                        Check it out:
                        www.EpicRoadTrips.us

                        [Non-text portions of this message have been removed]
                      • Mike Breiding - Morgantown WV
                        ... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Duh... I used =======HTML=========== in my original post and then inadvertently copied it to the validator. -mb
                        Message 11 of 12 , Oct 1, 2006
                        View Source
                        • 0 Attachment
                          At 11:13 AM 9/30/2006 , sisterscape wrote:
                          >1. As I remember - I'm a little rusty, <center> is a block level
                          >element and not allowed within <p>.
                          >
                          >2. It is also deprecated. Try using <p style="text-align: center;">
                          >instead. Or better yet, don't do inline styles at all. Instead, create
                          >a class and put it in a separate style sheet. sisterscape
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                          Duh...
                          I used "=======HTML===========" in my original post and then inadvertently
                          copied it to the validator.
                          -mb

                          ______________________________________________________

                          Thanks to you and all others for the replies.
                          I should have validated before sending my original post.
                          Results from : http://validator.w3.org/check are below.

                          The complete line the first error refers to is :
                          =======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">

                          I am not even sure how "=======HTML===========" ended up in the page.
                          Does XHTML require similar tags to the <HTML> </HTML> tags?

                          -Mike
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          " Below are the results of checking this document for XML well-formedness
                          and validity.

                          1. Error Line 1 column 0: character "=" not allowed in prolog.

                          =======HTML===========

                          ?
                          2. Error Line 24 column 89: element "center" undefined.

                          ...t="480" title="" alt="" /><p><center>001_dolly_sods_2006.jpg
                          (640x480; 41929

                          You have used the element named above in your document, but the
                          document type you are using does not define an element of that name. This
                          error is often caused by:
                          * incorrect use of the "Strict" document type with a document
                          that uses frames (e.g. you must use the "Frameset" document type to get the
                          "<frameset>" element),
                          * by using vendor proprietary extensions such as "<spacer>" or
                          "<marquee>" (this is usually fixed by using CSS to achieve the desired
                          effect instead).
                          * by using upper-case tags in XHTML (in XHTML attributes and
                          elements must be all lower-case."





                          [Non-text portions of this message have been removed]
                        • Mike Breiding - Morgantown WV
                          ... ========= Hi Lee, does the job of centering. I could not get to work. I added this: .center
                          Message 12 of 12 , Oct 1, 2006
                          View Source
                          • 0 Attachment
                            At 03:32 PM 9/30/2006 , you wrote:
                            ><p style="text-align: center;"> as an inline style or
                            >
                            >.center {text-align:center;}
                            >
                            >with <p class="center">
                            >
                            >Lee
                            =========

                            Hi Lee,
                            <p style="text-align: center;"> does the job of centering.

                            I could not get <p class="center"> to work.
                            I added this: .center {text-align:center;} to the CSS.
                            I also removed "text-align: left" from the Gallery DIV:
                            div#gallery p {text-align: left;margin: 10px 0 10px 0;font: 100%/1.3
                            Georgia,'Times New Roman',Times,serif}
                            My thinking was the Content DIV might be inheriting the left alignment from
                            the Gallery rules.

                            Any thoughts on this?
                            I will post to CSS Discuss http://www.css-discuss.org/ if this goes not
                            further here.
                            See:
                            http://tech.groups.yahoo.com/group/ntb-html/message/5613
                            for previously posted HTML and CSS

                            Thanks,
                            -Mike




                            ----------
                            Check it out:
                            www.EpicRoadTrips.us

                            [Non-text portions of this message have been removed]
                          Your message has been successfully submitted and would be delivered to recipients shortly.