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, 11:48 AM   #1
kamanza
Connoisseur
kamanza began at the beginning.
 
Posts: 98
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, 12:23 PM   #2
theducks
Grand Sorcerer
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: 15,268
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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
 
Advertisement
Old 07-12-2012, 12:40 PM   #3
kamanza
Connoisseur
kamanza began at the beginning.
 
Posts: 98
Karma: 10
Join Date: Jan 2011
Device: none
I see now. Thanks a lot.
kamanza is offline   Reply With Quote
Old 07-12-2012, 02: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,086
Karma: 1444487
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, 03: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, 03: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,086
Karma: 1444487
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 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


All times are GMT -4. The time now is 05:37 AM.


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