View Single Post
Old 03-22-2013, 10:36 AM   #1
zacsmith
Junior Member
zacsmith began at the beginning.
 
zacsmith's Avatar
 
Posts: 8
Karma: 10
Join Date: Oct 2012
Device: Kindle, iPhone 3GS
What am I missing in using <span> for bold?

Using Sigil 0.6.1 for Mac. I've looked for this issue issue here and elsewhere, but can't find a clue...

I seem to be missing something in using <span> to make words bold.

Here's the CSS:

Quote:
.b {
font-weight:bold !important;
}
And the HTML:

Quote:
<p><span class="b">Awareness</span>&nbsp;—&nbsp;The ability to look beyond your ego and see yourself as both a physical and spiritual being.</p>
The <span> for the bold word "Awareness" does not work (the word is not bold).

Using this HTML works fine:

Quote:
<p><span style="font-weight:bold">Arrows</span>&nbsp;—&nbsp;Two points on the Enneagram that diagram the movement of stress and eustress in each Ennea-type.</p>
Or, using <b> works fine, but goes against advice to use CSS (although it is simpler).

Since I've completed coding the entire pub using the first span code, I'd rather not bloat the file using all the extra code in the second span example.

I've checked the rest of the CSS to make certain I'm not accidentally clearing the style, but the odd thing is that the same thing, but for italics, works OK.

What and I missing?

Thanks! (I'll be out until this afternoon, so I'll check back in then.)

zack
zacsmith is offline   Reply With Quote