Quote:
Originally Posted by AlexBell
PS I've found that Mobipocket often does not bold or size headings correctly when the anchor is after the hn tag, hence the comment. Is this problem overcome with XHTML 1.1?
Regards, Alex
|
As stated before, this is a pecularity associated with Mobipocket and can be best adapted for anchor links to Chapter headings to start on a new page with pagebreak HTML <h1>...<h6> tags:
Code:
<a style="page-break-before: always;" name="CHAPTER_I" id="CHAPTER_I"></a>
<h2>CHAPTER I</h2>
but not:
<h2 style="page-break-before: always;"><a name="CHAPTER_I" id="CHAPTER_I"></a>CHAPTER I</h2>
and I can't recall if this works as well:
<h2 style="page-break-before: always;" name="CHAPTER_I" id="CHAPTER_I">CHAPTER I</h2>
Note that the first fragment allows the anchor tag to have the page-break attribute while retaining the following header formatting when "jumping" back as HarryT said.
The use of the
name and id is my attempt to allow for a transition from HTML 3.2 to XMHTL 1.1.