David Krings <david.krings at snet.net> wrote:
I tried both and case A works beautifully, whereas case B is like not
applying any styling at all. Although you really tried hard, I still don't
get the point of the span tag. Not only doesn't applying styles with span
work, but also it seems not to do anything at all. The several dozen span
tag descriptions on the web all go off into some mumbojumbo about it all
being the same / totally different than the div tag and that it really is
all for inline styling. Inline styling ?? I though that is when I use the
or tags and such and set the font attribute of the p tag directly
rather than using a style reference.
I know now at least how to get the styles from the style sheet implanted
into a page. I just wonder why a W3C editor is then so hellbent on using
the span tag.
Ahm, does any of this make sense?
David K.
a <P> would be a block level elemment, as would a <table> or <div>.
a <b>, <font>, <image>, <input type=...>, and so on, like <span> are not block level, they are inline.
Things like centering only apply to block level elements, so nothing will happen when you apply them to something inline.
The difference is that a block level element starts a new line when it is rendered, whereas an inline element just continues on the same line.
for instance, using dhtml, you can have
thing.style.display='none'; --> makes the thing invisible on the page, its still there, it just doesn't take up any space.
thing.style.display='block'; --> makes the thing visible, and it get seperates out into its own line/paragraph
thing.style.display='inline'; --> makes the things visible, and it gets displayed in place amongst whatever text/things are also on that line.
Randall
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.eclug.net/pipermail/eclug/attachments/20060817/567f9121/attachment.htm
More information about the ECLUG mailing list