Re: How to control above/below spacing of H & P tags for NS4x

by "Abhay S. Kushwaha" <abhay(at)kushwaha.com>

 Date:  Wed, 19 Apr 2000 22:20:27 +0530
 To:  "Basics [HWG]" <hwg-basics(at)hwg.org>
 References:  JaySmith
  todo: View Thread, Original
The only solution that comes to mind is to detect whether it's NN or
IE and then use stylesheet according to it. To achive this, you could
use a simple javascript to do one of the following:
1. Write the whole CSS according to the browser
2. Write a call to existing CSS file, there being two separate CSS
   files - one for NN, one for IE.

BTW, nothing is impossible; you'll get there "eventually". [grin]

[abhay]

----- Original Message -----
From: Jay Smith <jay(at)JaySmith.com>


> Maybe I am on an impossible journey.
> Problem: space above and below H1, H2, etc., tags (followed by P
> tags) is rendered 3-4 times larger in NS4x than in Explorer4/5.
> I cannot figure out how to control the spacing for NS viewing
> without the text in Explorer being virtually on top of each other.
>
> I am using CSS.  I am defining/controlling margins, padding, line
> height, etc., starting at BODY and then P and H1, H2, etc.  I
> believe I have tried virtually every possible combination, but
> maybe I am missing some combination. However, whenever it looks
> passable in NS, the text lines/paragraphs are piled almost on
> top of each other in Explorer.  When it looks nice in explorer
> (i.e. you can tell the difference between paragraphs, etc.) the
> paragraphs or headings are quite far apart (2-3 times the height
> of the text characters) in NS.

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA