W3C home > Mailing lists > Public > www-html@w3.org > April 2001

Re: Neutralize <P>?

From: Frank Tobin <ftobin@uiuc.edu>
Date: Thu, 5 Apr 2001 04:34:10 -0500 (CDT)
To: "Handeland, Jarle" <jarle.handeland@capgemini.no>
Cc: <www-html@w3.org>
Message-ID: <Pine.BSF.4.33.0104050428540.20278-100000@palanthas.neverending.org>
Handeland, Jarle, at 09:55 +0200 on Thu, 5 Apr 2001, wrote:

    ...to sum it up:
     How do I get the <p> tag to not act like it does? It should not have any
    visual presentation...

If you want to not have <p> have visual representation, and given that
most browsers will implement an internal stylesheet giving certain
paddings/margins to <p>, your best bet is probably to use stylesheets to
override these paddings/margins.

Since your main concern seems to be the vertical paddings that many
browsers give <p>, the following CSS snippet will eliminate vertical
spacing:

p { margin: 0, auto; padding: 0, auto }

-- 
Frank Tobin		http://www.uiuc.edu/~ftobin/
Received on Thursday, 5 April 2001 05:34:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:48 GMT