Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 12-07-2018, 07:35 PM   #1
alibi174
Junior Member
alibi174 began at the beginning.
 
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!
alibi174 is offline   Reply With Quote
Old 12-07-2018, 08:30 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 1,461
Karma: 5435106
Join Date: Jun 2010
Device: Windows 10 tablet,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by alibi174 View Post
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!
Change the "rem" to em.

Code:
  font-size: 1.8em;
bernie
gbm is offline   Reply With Quote
Old 12-07-2018, 10:39 PM   #3
alibi174
Junior Member
alibi174 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2018
Device: none
That did the trick; thank you very much!
alibi174 is offline   Reply With Quote
Reply

Tags
css, error, font, rem

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre full screen mode doesn't honor User CSS? bivab Library Management 4 06-16-2015 07:04 PM
CSS validation error kamanza Sigil 3 12-17-2012 05:40 PM
CSS validation error kamanza Conversion 11 12-12-2012 03:21 AM
ADE breaks CSS --> CSS Validation: Parse Error / Value Error dasboeh ePub 4 12-10-2012 04:25 AM
user accessable userStyle.css please tselling PocketBook 9 05-19-2010 09:02 PM


All times are GMT -4. The time now is 10:16 AM.


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