Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-12-2012, 10:48 AM   #1
kamanza
Zealot
kamanza began at the beginning.
 
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.
kamanza is offline   Reply With Quote
Old 07-12-2012, 11:23 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by kamanza View Post
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.
New (and uses the stylesheet, that just happened to name its selector for the font-face) way.

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;
theducks is online now   Reply With Quote
Old 07-12-2012, 11:40 AM   #3
kamanza
Zealot
kamanza began at the beginning.
 
Posts: 115
Karma: 10
Join Date: Jan 2011
Device: none
I see now. Thanks a lot.
kamanza is offline   Reply With Quote
Old 07-12-2012, 01:27 PM   #4
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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.
mrmikel is offline   Reply With Quote
Old 07-12-2012, 02:00 PM   #5
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
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.
meme is offline   Reply With Quote
Old 07-12-2012, 02:11 PM   #6
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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!
mrmikel is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
May I ask a dumb Question? unrulyguides Sigil 3 06-08-2012 02:17 AM
Dumb Question, but... omro Astak EZReader 6 12-04-2009 04:32 PM
Unutterably Silly There is never a dumb question, only dumb people! Dr. Drib Lounge 17 12-29-2008 09:43 AM
really dumb question ernietd Kindle Formats 2 11-01-2008 12:31 AM
Maybe this seems like a dumb question, but... JohnsnowNW Sony Reader 6 12-15-2007 11:10 AM


All times are GMT -4. The time now is 10:12 AM.


MobileRead.com is a privately owned, operated and funded community.