![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2018
Device: none
|
New User with CSS Error
I am new to Calibre and am stuck on a series of errors that I'm getting, and how to fix them.
The errors are: ERROR: CSS: Property: Invalid value for "CSS Level 2.1" property: 1.8rem [147:3: font-size]****[base.css] ERROR: CSS: Property: Invalid value for "CSS Level 2.1" property: 1.2rem [156:3: font-size]****[base.css] ERROR: CSS: Property: Invalid value for "CSS Level 2.1" property: 1.6rem [183:3: font-size]****[base.css] I get the message along the lines of the following for each error "base.css (line: 147 column: 3) Some reader programs are very finicky about CSS stylesheets and will ignore the whole sheet if there is an error. These errors can often be fixed automatically, however, automatic fixing will typically remove unrecognized items, instead of correcting them." The options for fixing the errors automatically do not work. The errors all point to lines with almost nearly identical code that defines the font (example below). #cover-page .cover-page-title p { font-size: 1.8rem; margin-top: 3em; margin-bottom: 1em; Any advice on how to fix this would be greatly appreciated! |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,165
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
Code:
font-size: 1.8em;
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2018
Device: none
|
That did the trick; thank you very much!
|
![]() |
![]() |
![]() |
Tags |
css, error, font, rem |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
user accessable userStyle.css please | tselling | PocketBook | 14 | 02-25-2022 05:27 PM |
Calibre full screen mode doesn't honor User CSS? | bivab | Library Management | 4 | 06-16-2015 06:04 PM |
CSS validation error | kamanza | Sigil | 3 | 12-17-2012 04:40 PM |
CSS validation error | kamanza | Conversion | 11 | 12-12-2012 02:21 AM |
ADE breaks CSS --> CSS Validation: Parse Error / Value Error | dasboeh | ePub | 4 | 12-10-2012 03:25 AM |