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

Re: XHTML DTD Question: span and p

From: Greg Faron <gfaron@integretechpub.com>
Date: Tue, 23 Apr 2002 14:34:32 -0600
Message-Id: <>
To: www-html@w3.org
Frank Tobin wrote:
 > Will not using a <div> instead of <span> to contain what you
 > want satisfy your needs?

   My only issue with using <div> is that I recall in the past (not aware 
of the current status) that <div> forced a <br> after it.  <span>, being 
inline, didn't have that extra visible linebreak in the browsers.  I 
suppose that I can live with it.

   As a follow-up grumbling, I've noticed that I need to have nested <div> 
tags in order to allow for justification as well as style.  I cannot simply use
<div align="center" id="div_1" style="display:none;">
   <!-- Static content, style.display is set dynamically -->

but instead

<div id="div_1" style="display:none;">
   <div align="center">
     <!-- Static content, style.display is set dynamically -->

   Is this a flaw of my browser (IE 6.0), or the specification?

Greg Faron
Integre Technical Publishing Co.
Received on Tuesday, 23 April 2002 16:35:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:59 UTC