So would a span in your case be an appropriate use for styling the drop cap inside a <p> tag where another DIV or whatever may be invalid code?

Basically a span is used within block elements in order to not conflict with the containing element?

That might make sense.

Adam

-----Original Message-----
From: Pringle, Ron <[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>; '[email protected]' <[email protected]>
Sent: Thu, 29 Sep 2005 13:32:23 -0500
Subject: RE: [css-d] Explanation of Spans


I have been sing CSS for the last year and I feel fairly versed in
getting some rather complex sites up and validated. One thing I never
really wrapped my head around just yet is what circumstances
you would
use a <span> style and what it is exactly.

<SNIP>

Anyways, please pass any explanations on. Thanks

Adam

Adam-

I can't offer you a definitive explanation or a when to use and not use
spans, but I can offer you one real-world example.

The only place in the entire municipal site that I manage that I use a span
is for doing drop caps at the beginning of a page of text.

I enclose the first letter in the paragraph with a span and give it a
.dropcap class.

Off the top of my head, I can't think of any other uses of span except for
styling individual text characters within the body of a paragraph.

Ron

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to