Re: H1 tags in NN 4

by "Lisa Bradshaw" <zibbler(at)>

 Date:  Tue, 12 Mar 2002 12:59:14 -0500
 To:  <thewolves(at)>
 Cc:  "HWG Techniques Email List" <hwg-techniques(at)>
 References:  pieceoshit gte
  todo: View Thread, Original
Ah hah! That's the problem. Actually I had the <h1> inside a <div> that had
the font size set. Work's great now.

And now for another Nestscape problem. This time with NN6.2. I'm designing a
web site for a client with a unique layout. The main body of content has to
be inside a <div> in order to format it correctly. It is basically a CSS box
with the content inside it. I want the box to be centered on the page. It
works fine in IE6 and surprisingly NN 4.7, but NN6.2 displays it off center
to the right. I've tried messing with margins, and using
background-position: center, but it still won't line up right. I even tried
centering the <div> using <center>, but then all the text becomes centered,
which I don't want. Will float work, or is that only for images?

Here's the style I have for the body and <div>:

body {
    scrollbar-track-color: #c9c;
    margin-left: 20px;
    margin-right: 20px;
    background-color: #000;

div.box1 {
    background-color: #ab19ad;
   /* background-position: center; */
      color: #000;
     border-style: outset;
     border-color: #cc33cc;
    padding: 20px;
    width: 600px;
     font-family: arial;
    font-size: 16px;
    border-width: 8px;
    font-weight: bold;
    margin-left: 70px;
    margin-right: 70px;

Here's the URL if you want to take a look at it:

Thanks again,
Lisa Bradshaw ,  Web Designer

Crescendo Web Design -
> I'll bet you've set a font-size for body in your style sheets, such as:
> body { font-size: 12px; }
> NN4 incorrectly applies such a size to the h# tags. There are two
> possible fixes:
> 1. Don't specify size for body - use something like:
> p,td,tr,li,ol,ul { font-size: 12px; }
> (list all of the items you want the size to apply to).
> 2. Specify sizes for the headings:
> body { font-size: 12px; }
> h1 { font-size: 16px; }
> h2 { font-size: 14px; }
> Larry Coats

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA