New answers tagged

0

Okay, I kind of found an answer (for this case at least) myself. The key was to walk away from the margin-bottom and look at it the other way around. So first deleting the margin-bottom from p.line and then putting a margin-top on any element that follows the p.line. And then putting the margin-top to "0" on all p.lines that are preceded by another p.line. ...


1

As you've discovered, the challenges here are that: in CSS, it's not possible to select a parent or ancestor element by its child; the browser applies CSS 'downwards' only; and you can't know what CSS properties and selectors EPUB2-capable readers will actually support. If I've understood your needs correctly, here are three possible options you could try. ...


1

Here's the spec. http://www.idpf.org/epub/20/spec/OPS_2.0_latest.htm#Section3.1 Support for these css features were limited in EPUB2, plus it's also a question of whether the device or app will support this. Most reading systems have nominal support for EPUB3 (and that's really important for css support). For example, most reading systems today support css ...


1

It would help if provided a sample of the content to give a better answer or suggestion. Are the equations in html, mathml, or as images? What is your current html output for the equations, do you have a sample you could share? If your number is wrapped in a tag with a unique css class, then you could use css to float the number to the right. Example html: ...


1

Old question, but I came in search of an answer and have some things to share on this topic! Adobe InDesign uses character or paragraph styles to format italics and bold, using a relevant font family, this is correct. There used to be a way to visually "force" a style, but I'm using Creative Cloud and have the most recent InDesign, which doesn't show these ...


Top 50 recent answers are included