![]() |
#1 |
Junior Member
![]() 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: 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. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
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> |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 860
Karma: 4097942
Join Date: Jun 2012
Location: London, UK
Device: Sony PRS-505, Pocketbook TL3, TL4, TL5
|
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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |