Questions tagged [css]

`CSS` or "Cascading Style Sheets" is a language for describing the look and formatting of a document. It is often used in web pages or XML.

12 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
67 views

How well does Google Play Books support page-oriented css? (i.e., page breaks)

While testing ebooks, I have been finding deficiencies in css support in Google Play Books. Namely, this doesn't work: h2 { page-break-before: always; } GPB's support for embedded ...
1
vote
1answer
22 views

Alternate covers for different devices and software

Quite new to writing and editing ebooks and I wondered something. I know in webpages it's possible to produce alternate styling and content based on what the content is being viewed on. So CSS can ...
1
vote
0answers
54 views

Adding a background image in Calibre

To get a background image in Calibre, I gather that I need to open a book and right click. This will expose a menu. Choosing "Preferences" >> "Styles" opens a GUI to change ...
1
vote
0answers
99 views

how to read code part of technical book on kobo

I have many technical ebooks with coding examples but it's unreadable because there's no scrollbar and many lines are longer than my ebook screen. I have tried to change it in an open ebook by adding ...
1
vote
0answers
71 views

Removing white background from linked images

My first epub looks fine when viewed in iBooks, but it has a problem in Kindle. Hyperlinked home page icons have a white background. So a triangular image just looks like a big white square. I added ...
1
vote
0answers
45 views

Need a Workaround for CSS Overrides

I'm working on an epub in Sigil. Things are going pretty good, but I'm puzzled by some kind of CSS bug. For example, I want all the fonts in the table of contents section to be sans-serif. So I put ...
1
vote
0answers
1k views

Setting default ePub font in iBooks

I acquired a sample epub file from a client to use as a template for new epub files. When I open this file in iBooks (v 1.0.1), the paragraph text by default has the font Iowan, and the style ...
1
vote
0answers
144 views

landscape orientation in ereaders: css for both 1 and 2 page layout?

I'm trying to write css media queries for landscape and portrait orientations. With widths of 1024 pix and wider, you think that 1024 pixels is enough to have 2 columns instead of 1. But does any ...
0
votes
0answers
22 views

Formatting for dark mode

I tend to read ebooks in dark mode, in the Kindle app specifically. One thing that always bugs me is whenever there is a special symbol or ornament in the text that has been inserted as an image - it ...
0
votes
0answers
36 views

Can anybody help me modifying those css code?

I used those code from Github to change the theme of calibre reader. Everything seems okay but as you can see in the screenshot, at the right part and at the bottom part, the long text gets cut off. I ...
0
votes
0answers
406 views

Is there an equivalent of TeX's \hfill in CSS?

Subject says it all. I know that I can use float:left and float:right, but this does not work if the combined lenght of texts is more than a line. I would like to have some text anchored to the left ...
0
votes
1answer
719 views

EPUB 3 CSS stylesheet ignored in some cases?

I created a MOBI file using Kindlegen. I fed the MOBI file to Calibre and converted it to an EPUB. If I view the HTML files I used to create the MOBI file, they look great. All formatting is picked ...