![]() |
#361 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,675
Karma: 134319570
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#362 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2022
Device: Kindle
|
List of css-element identifiers?
Hey guys,
I searched the web without success for a list of all the css-element identifiers. Can someone help me please? The most urgent one is the one for the background-colour of the highlighted text-sections (currently a really aggressive piss-yellow ... ;-)) Please help! |
![]() |
![]() |
![]() |
#363 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,277
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
https://www.w3schools.com/cssref/default.asp
Just remember that all you see there does not apply (at all) to EPUB. It may look fine in Calibre or Sigil preview, but the acid test is the REAL device ![]() |
![]() |
![]() |
![]() |
#364 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2022
Device: Kindle
|
Thank you theducks, for trying to help!
But in the list behind your link I did not find a working selector for highlighted text. Somewhere else I found "::selection". This is what I chose instead of the default piss-yellow: ::selection { color: white; background: #45b1e9;} So beautiful! I'm happy now! :-) |
![]() |
![]() |
![]() |
#365 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2022
Device: Kindle
|
|
![]() |
![]() |
![]() |
#366 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,675
Karma: 134319570
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#367 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2022
Device: Kindle
|
Good question, JSWolf! ... I'd like to know too!
|
![]() |
![]() |
![]() |
#368 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,675
Karma: 134319570
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Once you figure out what's supported, you have to then figure out what's ePub 2 and what's ePub 3. And just because it's supposed to be supported, it may not be in some programs. So if you can do without them, do so and use a work around that does work.
For example, p::first-letter can be done away with by using a <span> to do the same thing. |
![]() |
![]() |
![]() |
#369 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Mar 2021
Device: Kindle Paperwhite
|
Could anyone share a css that is similar to the one as in Calibre-web or in Apple Books?
![]() |
![]() |
![]() |
![]() |
#370 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 16
Karma: 31960
Join Date: Apr 2016
Device: none
|
Hello everyone,
I've installed a new font, "Barlow Semi Condensed", and updated my css as follows: p { line-height: 1.6; background-color: #4d4d4d; font-family: "Barlow Semi Condensed" !important; text-align: left !important; } Doesn't seem to be working though... The font has changed into something but it's not BSC. What am I doing incorrectly? Thanks. EDIT: Solution for anyone interested: Windows, for whatever reason, has installed 4 out of 18 "Barlow Semi Condensed" fontfaces under "Barlow". These are "regular", "italic", "bold" and "bold italic". So, "font-family: Barlow !important;" is the solution. Any idea why Windows does this and how to fix it? Last edited by sanon; 11-05-2022 at 05:49 AM. |
![]() |
![]() |
![]() |
#371 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,099
Karma: 6425162
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Today I needed to add spacing between paragraphs, but couldn't find a rule that would stick, then after several unsuccessful attempts I found this:
https://stackoverflow.com/questions/...34345#25234345 Now I'm using: p + p {margin-top: 0.4em !important;} |
![]() |
![]() |
![]() |
#372 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Feb 2023
Device: none
|
![]() ![]() ![]() Quote:
|
|
![]() |
![]() |
![]() |
#373 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Aug 2023
Location: Cantabria.
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#374 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72,053
Karma: 307935764
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
You might be able to find old versions at the internet archive, although they might not be functional. Here's the About page from 2009: https://web.archive.org/web/20090825...den.com/about/ |
|
![]() |
![]() |
![]() |
#375 | |
Junior Member
![]() Posts: 2
Karma: 50
Join Date: Mar 2023
Device: Onyx Boox Leaf 2
|
Here's a css styling for people who prefers a 1-page view for the paginated mode in the calibre viewer:
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom CSS for output | deckoff | Calibre | 1 | 08-28-2010 11:55 PM |
ePub with custom .css on a 505 | dicknskip | Sony Reader Dev Corner | 3 | 06-09-2010 11:34 PM |
User stylesheets for ePub files | salty-horse | Sony Reader Dev Corner | 12 | 02-23-2010 07:44 AM |
ePub conversion: override existing css with a custom one | sbin | Calibre | 1 | 01-09-2010 04:03 AM |
Calibre's generated css for epub | brewt | Calibre | 7 | 12-29-2008 09:59 AM |