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 03-30-2017, 05:54 PM   #1
DolusBonus
Junior Member
DolusBonus began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2012
Location: Republic of Texas
Device: Amazon Kindle Keypad
Help with Stylesheets > Content for New User

I have struggled to see how to link style from a stylesheet with my content.

For instance, I would like to explain how to bold text from the keyboard and would like my content to look like this:

Name:  2017-03-30_16-40-59.jpg
Views: 166
Size:  1.5 KB

Using Firebug I found the code which, if pasted into my ebook in Sigil will produce the results I want:

<kbd class="keyboard-key nowrap" style="border: 1px solid #aaa; -moz-border-radius: 0.2em; -webkit-border-radius: 0.2em; border-radius: 0.2em; -moz-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); -webkit-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1); background-color: #f9f9f9; background-image: -moz-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: -o-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: -webkit-linear-gradient(top, #eee, #f9f9f9, #eee); background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee); padding: 0.1em 0.3em; font-family: inherit; font-size: 0.85em;">Ctrl</kbd>

If you have not given up on me, my question is how to format this type of content correctly each time I need to use in the best way. Could someone suggest what is added to my stylesheet, how it is called when needed, etc?

Last edited by DolusBonus; 03-30-2017 at 05:57 PM.
DolusBonus is offline   Reply With Quote
Advert
Old 03-30-2017, 07:41 PM   #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: 20,881
Karma: 20350468
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab 2(RIP)
I don't know about your inline code. I assume .keyboard {stuff} is in the css

I use the saved 'clip' feature

Code:
<kbd class="keyboard">\1</kbd>
Use of this forma of a clip will wrap the selected text
theducks is offline   Reply With Quote
Old 04-01-2017, 12:51 PM   #3
MickiTee
Fanatic
MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.
 
MickiTee's Avatar
 
Posts: 526
Karma: 1559466
Join Date: Jun 2012
Location: London, UK
Device: Sony PRS-505 & T1, Pocketbook Touch Lux 2 (626)
You have to link stylesheets to html files. Right click on the html file and select 'Link Stylesheet' from the context menu.

The Sigil User Guide (available from the Sigil website), while not including newer functionality e.g. Epub3 support, is still a good starting point for this type of basic operation.
MickiTee 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
Stylesheets Phylis Sophical Sigil 10 10-28-2014 03:56 PM
CC Content Server - do not display User Categories filmgal Devices 9 04-24-2013 03:11 AM
Comparison as content creator and user. stevedw Which one should I buy? 0 07-31-2010 02:32 PM
User stylesheets for ePub files salty-horse Sony Reader Dev Corner 12 02-23-2010 07:44 AM
Classic User Made Custom Daily Content DaveNB Barnes & Noble NOOK 9 12-14-2009 06:45 AM


All times are GMT -4. The time now is 10:07 PM.


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