|
You're trying to edit Calibre sourced (X)HTML?
Or is it two sources, some conversion, like Word-sourced HTML that's then fed into Calibre?
Way, way too complicated, I think. You've got stuff with absolute sizes, too.
Get your source into simple (X)HTML, then you can do just about anything. Spending hours chasing down whatever computer-named class or id is causing your problem is wasted effort b/c it won't be repeatable next time. All the class-names and work-arounds will be different. Calibre is not a tool for production work, it's a tool for "good enough" conversion.
My opinion, but I'm actually trying to be helpful, not just tossing bombs. Simple-ish (X)HTML makes almost every problem solveable. Massively complicated computer-generated (X)HTML is only useful the way Calibre does it -- as a work-around, designed to minimize hassle for the user on conversion.
Your code is literally trying to place everything on the screen in an exact position. Fighting that is going to be a nightmare.
$0.02
|