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.

54 questions
2
votes
2 answers

How to set the font sizes of two text sections to be relative to each other?

I am editing an ebook, trying to mimic the original format of its text. In the book, footnotes are written in a smaller font with respect to normal text, and so are quotations; this means that a quotation inside a footnote is even smaller. I used an…
mau
  • 2,364
  • 5
  • 19
  • 41
2
votes
1 answer

Is it possible to set font-color to the background-color

I want a , but of course, the background in nightmode will appear black (or something close to that). How can I set the css so the big 7 has the same font-color as the background no matter what the user has set
James
  • 121
  • 2
1
vote
2 answers

CSS: Spans vs Font Families

I'm using Sigil to create epubs and iBooks primarily to preview them, and I have a recurring CSS problem that's driving me nuts. I'm not really sure if it's just a problem with spans or with a variety of nested elements, but here goes... Imagine a…
WordBear
  • 647
  • 5
  • 12
1
vote
0 answers

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 this to my style sheet: a { background: none;…
WordBear
  • 647
  • 5
  • 12
1
vote
0 answers

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 the following rule in the style sheet attached to…
WordBear
  • 647
  • 5
  • 12
0
votes
0 answers

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 and some other text anchored to the right, but I…
mau
  • 2,364
  • 5
  • 19
  • 41