Quote:
Originally Posted by kamanza
What i don't know is how to write code for headings in .css. When i open .css there are only styles for the text (calibre; calibre1; calibre2; etc.). No mention of the headings.
|
Those are existing selectors. (Note these selectors start with a DOT in the CSS and will be used with class="selectors_name" in the book)
Example (from experience
) .calibre (or .calibre3) is typically used in the body tag within the book
Code:
<body class="calibre" >
Note: a specific
calibre# only applies to THIS book (and maybe only to THIS section with a really crappy source.
if you see calibre# greater than 30 you have a garbage source that will need TLC to really clean.)
OK back to your problem.
If a selector exists (look at your books headings in CV ) in the CSS, you can just use it in the book, elsewhere.
if it does not exist,
roll your own.
ADE on my PEz does not automatically center headings(as expected HTML should), so I create a selector:
Code:
.chapterno {
text-align: center;
text-indent: 0;
/* any other chapter header styling here */
}
---
and I use it:
<h3 class="chapterno">Chapter 42: <br />Life, the Universe and Me</h3>