DHTML Forum > dhtmlcentral.com > General DHTML issues > and

PDA

View Full Version : and


jc
21.06.2001, 12:42
<SPAN> and <DIV>, is the a diference, that is the question.

Dan
21.06.2001, 14:08
<span> doesn't break up the flow of the text, try the following:
<pre id=code><font face=courier size=2 id=code><div>Hello there this is some<div style="font-weight: bold">bold</div> text</div>
<div>Hello there this is some<span style="font-weight: bold">bold</span> text</div></font id=code></pre id=code>

<font face='Courier New'><font color=maroon>»» Dan (dan@pupius.net)
»» www.pupius.net || www.endoflow.com</font id=maroon></font id='Courier New'>

jc
21.06.2001, 15:17
tanks Dan.
but my question was for scripting
does divs have propertys/methods that span dont ??



Edited by - jc on 06/21/2001 14:18:24

Dan
21.06.2001, 16:01
Don't think so, try this:
<pre id=code><font face=courier size=2 id=code><div style="position: absolute; top: 10; left: 20;">Hello here this is some <div style="position: absolute; top: 10; left: 20; font-weight: bold">bold</div> text</div>
<div style="position: absolute; top: 50; left: 20;">Hello here this is some <span style="position: absolute; top: 10; left: 20; font-weight: bold">bold</span> text</div>
</font id=code></pre id=code>I think it's just good practice to use DIVs for absolutly positioned elements.

<font face='Courier New'><font color=maroon>»» Dan (dan@pupius.net)
»» www.pupius.net || www.endoflow.com</font id=maroon></font id='Courier New'>

KrasH
21.06.2001, 17:55
the SPAN tag is what they call an Empty Element, it is great for inline Styles.

KrasH
::DeadEnd Designs::

vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.