|
|
#1 |
|
Zealot
![]() Posts: 115
Karma: 10
Join Date: Jan 2011
Device: none
|
Another dumb question.
As I'm learning to make ebooks, I come up with some questions, that even to me look dumb. Still, i need answers.
So here is the latest one: What is the practical difference between: <span class="italic">whatever</span> and <i>whatever</i> As always, help is much appreciated. |
|
|
|
|
|
#2 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,271
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Old way HTML. Want to change every Italic word to Bold-Italic , you need to change Each and every use of <i> With the Stylesheet 1 change font-face: italic; simply add the line font-weight: bold; |
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Zealot
![]() Posts: 115
Karma: 10
Join Date: Jan 2011
Device: none
|
I see now. Thanks a lot.
|
|
|
|
|
|
#4 |
|
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
You might want to check out http://www.w3schools.com. It goes into detail on span and style and the various tags. I don't think you can use class after span. I most commonly use class as part of a paragraph tag...<p class="fn"> for footnotes, for example. That way all the footnotes are the same and can be changed once in the stylesheet.
|
|
|
|
|
|
#5 |
|
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
You can definitely use a class attribute in a span tag.
It can be difficult to switch from thinking about applying a font style directly to text (e.g. <i>) and instead think about why you are using the style on that piece of text - i.e. why are you making it Italic. For instance its usually not just italic because you felt like it, it may be Italic because its the name of a book. In which case instead of using <i> you can use the <span class="bookname">My Book</span> syntax, along with a stylesheet that defines class bookname as italic, e.g. span.bookname { font-style: italic } Then as theducks said, when you decide you want your book names in bold italic or pink, you just change the style definition instead of every bookname entry - and you can tell you bookname italics separate from your quote italics, etc. |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Got span and style confused! class does work in span!
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| May I ask a dumb Question? | unrulyguides | Sigil | 3 | 06-08-2012 03:17 AM |
| Dumb Question, but... | omro | Astak EZReader | 6 | 12-04-2009 05:32 PM |
| Unutterably Silly There is never a dumb question, only dumb people! | Dr. Drib | Lounge | 17 | 12-29-2008 10:43 AM |
| really dumb question | ernietd | Kindle Formats | 2 | 11-01-2008 01:31 AM |
| Maybe this seems like a dumb question, but... | JohnsnowNW | Sony Reader | 6 | 12-15-2007 12:10 PM |