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: <5.1.0.14.0.20020423142517.00aa6528@parzival.integretechpub.com>
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 -->
</div>

but instead

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

   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 GMT

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