Jump breaks are great, but the jump target is not always what you want: exactly at the place where <!--more--> was. Maybe you'd like to show the whole post instead. Here is a simple tip to alter the target position. You have to use the html editing mode for these hacks to work.
Somewhere in post before the <!--more-->
Just put <a name="more"></a> where you want the jump target (before <!--more-->). It can be at the start of the post text, for example.
Start of post including title
Maybe you want to go higher than start of the post text. Put this at the start of the post, this one includes post title, too (and this post is a demonstration of this variation):
<a style="position:absolute;top:-4em;" name="more"></a>
Start of page
<a style="position:absolute;top:-99em;" name="more"></a>
Just play around with these a while, and I think you'll get the drift.
Strictly speaking, adding another #more target to the page produces invalid html: there's duplicate anchor name in page and html validators will complain about that. But it works: browsers just use the first anchor they find, no complaints. :)
Somewhere in post before the <!--more-->
Just put <a name="more"></a> where you want the jump target (before <!--more-->). It can be at the start of the post text, for example.
Start of post including title
Maybe you want to go higher than start of the post text. Put this at the start of the post, this one includes post title, too (and this post is a demonstration of this variation):
<a style="position:absolute;top:-4em;" name="more"></a>
Start of page
<a style="position:absolute;top:-99em;" name="more"></a>
Just play around with these a while, and I think you'll get the drift.
Strictly speaking, adding another #more target to the page produces invalid html: there's duplicate anchor name in page and html validators will complain about that. But it works: browsers just use the first anchor they find, no complaints. :)

No comments:
Post a Comment
Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.
Note:
1. Make sure to click the "Subscribe By Email" link below the comment to be notified of follow up comments and replies.
2. Please "Do Not Spam" - Spam comments will be deleted immediately upon our review.
3. Please "Do Not Add Links" to the body of your comment as they will not be published.
4. Only "English" comments shall be approved.
5. If you have a problem check first the comments, maybe you will find the solution there.