W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2002

Re: <HR> in <PRE>

From: Jeff Hennick <JHennick@mindspring.com>
Date: Sun, 03 Mar 2002 15:55:18 -0500
Message-Id: <>
To: html-tidy@w3.org
"Graham Coward" <coward@alphalink.com.au> wrote about not being able to use 
<hr> inside <pre> without TIDY complaining.

TIDY is, of course, right here.

Graham, try a slight change to your HTML using <style> .

Add this to the <head>-section:

<style type="text/css">
.ms{font-family: monospace}

Then change the <pre> to <div class="ms">, and the </pre> to </div>.  It 
now works, is legal HTML, and TIDY says so.

If your generator program won't do it, a simple filter program should be 
able to "fix" your files in bulk.

Jeff Hennick
Received on Sunday, 3 March 2002 15:58:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:51 UTC