|  04-16-2022, 06:33 PM | #16 | |
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 Code: .underline {
  text-decoration: underline;
} | |
|   |   | 
|  04-16-2022, 06:52 PM | #17 | 
| Guru            Posts: 793 Karma: 1538394 Join Date: Sep 2013 Device: Kobo Sage | 
			
			A few questions on those changes you made to retiredbiker's CSS:  I'm pretty sure you removed the margin settings in those "sub" styles because they are "inherited" from the body style. For "display: block;", I believe that's a default for paragraphs, so that's why you pulled it out.  Is that also true for "font-size: 1em;"?
		 | 
|   |   | 
|  04-16-2022, 07:09 PM | #18 | |
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 | |
|   |   | 
|  04-16-2022, 08:48 PM | #19 | |
| Evangelist            Posts: 454 Karma: 3886916 Join Date: May 2013 Location: Ontario, Canada Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma | Quote: 
 The changes actually make sense, I'll give it a try, thanks! | |
|   |   | 
|  04-17-2022, 05:55 AM | #20 | |
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 Code: body {
  tyext-align: left;
  margin-top: 0.1em;
  margin-right: 0;
  margin-bottom: .1em;
  margin-left: 0;
  widows: 1;
  orphans: 1;
}
p {
  margin-top: 0em;
  margin-bottom: .1em;
  text-indent: 2em;
}
.noindent {
  margin-top: 2em;
  margin-bottom: .1em;
  text-indent: 0;
}
.chapter {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 1em;
  text-align: center;
  text-indent: 0;
}
.quotations {
  font-style: italic;
  margin-top: 0;
  margin-bottom: 0.5em;
  margin-left: 2em;
  text-indent: 0;
}
.center {
  text-align: center;
  text-indent: 0;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.nospace {
  margin-bottom: 0;
}
.right {
  text-align: right;
  text-indent: 0;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.verse {
  font-style: italic;
  margin-top: 0;
  margin-bottom: 0.1em;
  margin-left: 3em;
  text-indent: -2em;
}
.verse1 {
  display: block;
  font-size: 1em;
  font-style: italic;
  margin-top: 1em;
  margin-bottom: 0.1em;
  margin-left: 3em;
  text-indent: -2em;
}
.widepic {
  height: auto; 
  width: 98%;
}
.narrowpic {
  height: auto;
  width: 50%;
} | |
|   |   | 
|  04-17-2022, 08:47 AM | #21 | 
| Evangelist            Posts: 454 Karma: 3886916 Join Date: May 2013 Location: Ontario, Canada Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma | |
|   |   | 
|  04-18-2022, 05:24 AM | #22 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			It can be a rare occurrence to see the blank page. But now you can make it an occurrence that never happens. Just use the class if p last in the chapter/section.
		 | 
|   |   | 
|  06-10-2022, 07:12 PM | #23 | |
| Member  Posts: 15 Karma: 10 Join Date: Apr 2011 Location: Wisconsin USA Device: Kobo Libra 2, iPad mini 6, iPhone |   Quote: 
 I used "left align" for text justification in Calibre's Preferences > Common Options > Look & Feel > Text but many Kobo epubs as well as Bookshare daisy books are still justified. Do I want to be plugging the CSS you've provided here into the "Styling" section in that same Look & Feel dialog? | |
|   |   | 
|  06-10-2022, 08:57 PM | #24 | |
| Evangelist            Posts: 454 Karma: 3886916 Join Date: May 2013 Location: Ontario, Canada Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma | Quote: 
 | |
|   |   | 
|  06-10-2022, 09:24 PM | #25 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | 
			
			There is no ONE CSS to rule them all. Most books make use of 'class= ' in the HTML tags, That is usually the last one that applies . remember one of the C's is Cascade. That can mean they can stack on a prior styling. p {sets the overall style} .indent {text-indent: 1.5em;} adds an indent to the basic P  Put your cursor on the style= part of the tag: ctrl+Right-mouse click to jump to that selection in the CSS | 
|   |   | 
|  06-11-2022, 12:21 AM | #26 | |
| Wizard            Posts: 1,687 Karma: 9500498 Join Date: Sep 2021 Location: Australia Device: Kobo Libra 2 | Quote: 
 You want to find the following in your CSS file, and where it is located does matter. PHP Code: 
			PHP Code: 
			 | |
|   |   | 
|  06-11-2022, 05:14 AM | #27 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			Delete all cases of text-align: justify; and add to the body style text-align: left;. Problem solved. You can try changing the alignment in the Aa menu for any Kobo synced eBooks. But, last time I tried it (unless it' been fixed since), centered text became left justified. This is with KePub. I've not tried this with ePub. | 
|   |   | 
|  06-20-2022, 08:32 PM | #28 | 
| Member  Posts: 15 Karma: 10 Join Date: Apr 2011 Location: Wisconsin USA Device: Kobo Libra 2, iPad mini 6, iPhone | 
			
			Thanks so much for all your helpful suggestions. Will be back with (I hope) a successful report next month. | 
|   |   | 
|  06-21-2022, 08:48 AM | #29 | |
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 Code: .nospace {
  margin-bottom: 0;
}Code: <p class="nospace">This is the last paragraph of the chapter."</p> | |
|   |   | 
|  08-29-2023, 08:11 AM | #30 | |
| Enthusiast   Posts: 32 Karma: 164 Join Date: Oct 2021 Location: Finland Device: Kobo Libra 2 | Quote: 
 Would you be able to help a noob on how can I use your CSS to modify my ePubs? I've tried to replace stylesheet.css completely but it doesn't seem to work and I've also tried to inject it from conversion styling but I cannot get it to work. Is there something clear I'm missing? | |
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Linking to CSS stylesheet | mossman26 | Sigil | 2 | 07-16-2020 02:38 PM | 
| pagestyle.css extra / integrated in stylesheet.css / or not at all? | chaot | Workshop | 14 | 02-24-2017 11:10 PM | 
| stylesheet.CSS anyone? | ProDigit | ePub | 81 | 12-26-2015 01:43 PM | 
| Converting cm to em in css stylesheet | roger64 | ePub | 41 | 06-13-2014 01:00 PM | 
| Where is the stylesheet.css? | roger64 | Sigil | 4 | 03-23-2010 02:12 PM |