View Single Post
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