Epub Validator Warning
Learn / Forums / EPUB and eBook / Epub Validator Warning
- This topic has 9 replies, 6 voices, and was last updated 5 years, 6 months ago by Annie ASLANIAN.
-
AuthorPosts
-
-
January 25, 2016 at 11:44 am #81089Suad PasicMember
I was following great video tutorial made by Anne-Marie Concepción and I’m very excited about my first e-book I have made in InDesign. Anyway, when I was validate my epub file online I got this warning and I have no idea how to fix this.
“CSS selector specifies absolute position.”
Can someone help please?
-
February 4, 2016 at 7:19 pm #81561Aaron TroiaParticipant
I’m guessing this is a reflowable ebook, so either you placed something in the document that is somehow locked in position and not anchored in the text to reflow with the text, or InDesign has giving one of your CSS styles an absolute position (so absolute height and width from the top of the screen, so it’s static not reflowable). Not sure how to fix it without seeing it. I personally would probably unzip the ePub and probably take care of it in the CSS, not sure how to do it in InDesign off the top of my head.
-
June 21, 2017 at 1:37 pm #95606Margaret HunterParticipant
I’m getting this validation error too (although everything looks OK in previewers and an actual Kindle). Here is the relevant bit of the generated CSS. I actually started with the ebook template made by Anne-Marie, so images had the object style Above line centred. Any ideas what’s causing this please? Should I just ignore it?
div._idGenObjectAttribute-2 {
height:100.00%;
left:0%;
overflow:hidden;
position:absolute;
top:0%;
width:100.00%;
} -
September 4, 2018 at 4:04 am #110215Tim HughesMember
Is there a way to fix this problem (CSS-017) with Indesign?
I have it showing as a warning -
September 5, 2018 at 7:36 am #110277Anne-Marie ConcepcionKeymaster
This is an obnoxious BUG in InDesign CC 2018. It has to do with choosing CSS Size set to Relative in the EPUB Export Options dialog box. If you choose Fixed, the “position: absolute” attribute isn’t written, and the validation warning goes away.
I haven’t tested, but I’m thinking you could find/change that attribute in the CSS to fix it after the fact.
AM
-
September 10, 2018 at 2:20 am #110360Tim HughesMember
Hi All
I too am getting these warnings and indeed setting CSS size to Fixed does cure most of them (one remains) but it does mean the graphics do not resize well. Why can’t we have Indesign outputting clean code ready to use? Imagine if we had to hand recode postscript files everytime we want to send a book to print. ID is partly sold on its ability to create epub files but it still works quite badly compared to how well it outputs for print.
-
September 10, 2018 at 5:20 am #110361Anne-Marie ConcepcionKeymaster
I completely agree, Tim. I think the InDesign team has taken their eye off the ball of EPUB and is spending resources elsewhere.
Vote on my bug report!
https://indesign.uservoice.com/forums/601021-adobe-indesign-feature-requests/suggestions/35363767-epub-export-with-common-settings-fails-validation -
September 11, 2018 at 4:09 am #110364Tim HughesMember
Voted!
Its essential that Adobe keep working on the epub output from ID.
-
September 12, 2018 at 1:51 am #110372Tim HughesMember
So what would the fix be, aside from setting CSS size to fixed, what am I searching for in the CSS and what do I change it too?
Validate – then use the warnings to know which css file has the problem
break it open and open the css file in a text editor
find:absolute is and change it to position:relativeclose it up again (I used ecancrusher to open it and to close it up) validate – Success!
I do like answering my own questions.
-
October 18, 2018 at 6:46 am #110986Annie ASLANIANMember
Excuse me if my English is not always correct (I’m French) but…
I also have this CSS “error message” when generating an epub with images, but when I get into the idGeneratedstyle.CSS code, and find the “position:absolute” line and change it to “position:relative” to fix the error, then the image is distorted.
How could I fix this problem, please ?
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.