php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #68045 Anchor tagets disappear below fixed header
Submitted: 2014-09-18 14:07 UTC Modified: 2014-09-18 14:16 UTC
From: sebastian dot leitz at etes dot de Assigned:
Status: Duplicate Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sebastian dot leitz at etes dot de
New email:
PHP Version: OS:

 

 [2014-09-18 14:07 UTC] sebastian dot leitz at etes dot de
Description:
------------
If you open links like http://php.net/ChangeLog-5.php#5.5.17 (which are commonly included in release notes) or http://de2.php.net/strpos#refsect1-function.strpos-examples (to reference parts of a doc page), the anchor target is always a heading which will not be visible.

The headline is hidden because the header of php.net uses "position: fixed" and thus is always present.

This is a very common problem, so you can easily find solutions which make sure that the headline will stay visible (by jumping not to the heading itself but to a place e.g. 40px before that).

Some hints:

- http://stackoverflow.com/questions/4086107/html-positionfixed-page-header-and-in-page-anchors
- http://stackoverflow.com/questions/10732690/offsetting-an-html-anchor-to-adjust-for-fixed-header


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-09-18 14:16 UTC] sobak@php.net
-Status: Open +Status: Duplicate
 [2014-09-18 14:16 UTC] sobak@php.net
Duplicate of bug #67050
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 04:01:29 2024 UTC