View Single Post
Old 10-27-2015, 07:17 AM   #65
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,374
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Sometimes I use empty spans to designate a special span inside of another element. There is no reason to give it a special class as long as you define it properly in your css file.

Code:
h2      {font-size:1.2em; text-transform:uppercase}
h2 span {display:block; font-size:.8em; text-transform:none; 
         font-variant:small-caps}

<h2>Chapter One <span>The Woes of CSS</span></h2>
Always applies the proper formatting to the spanned portion - making a title for the chapter in this case. But it ONLY applies to spans within an h2 tag. It also provides the complete chapter title for Sigil's auto TOC algorithm without having to define title="", and it saves on unnecessary bits & bytes for the file size.

I do agree with you that there are really annoying publishers that go empty span crazy for no reason at all...
Code:
<p class="first-letter-in-a-new-section-of-text text-overide-party-on-dude">
<span><span><span>I</span></span>'d</span> like to say...</p>

CSS:
first-letter-in-a-new-section-of-text {font-size:1em}
text-overide-party-on-dude {}
and then they don't even code for an empty span....
Turtle91 is offline   Reply With Quote