GNOME Bugzilla – Bug 618379
Navigation is hiding anchors title
Last modified: 2010-10-16 21:38:34 UTC
Top position fixed table for navigation is annoying when using anchors links. Usually, the title is often hidden by the navigation table, leaving the user wondering where he ended up. Even an exercised user can be annoyed :) There might be some Css tricks to fix that, but we should probably avoid fixed offset or javascript, although that would be better than the current situation.
It is using css. I was fixing the offsets with firebug once. but noticed that browsers seems to have changed :/ I like it either, but I don't have time right now to do that once again.
Let see if a desperate soul find a nice answer: http://stackoverflow.com/questions/2812503/fixed-top-element-and-anchors
Marc-Andre, its a bit weired - in firefox (3.5.9) this works fine for me. In devhelp (0.23) and epiphany (2.28.0) there is an offset. I already use this to correct the position. /* this is needed so that the local anchors are displayed below the naviagtion */ div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name] { position: relative; padding-top:4.5em; } The suggestion in stackoverflow don't help. What browser did you used?
devhelp 2.30.0-1 from debian, linked with webkit.
Created attachment 160953 [details] test page
Created attachment 160954 [details] test css The attached two attachements form a minimal example. If someone can make it work across the browsers I can fix it in gtk-doc accordingly.
Created attachment 172496 [details] Corrected style file This fixes the problem and works in Firefox, Webkit (Safari, Chrome) and IE7+. Not tested in Opera.
Created attachment 172497 [details] Corrected html file
We also tested the files in Opera and they work well. The files I attached were done by Rodrigo Aliste.
Created attachment 172501 [details] [review] Don't hide anchor links when navigating. Fixes bug #618379.
commit c42c99bfb823d7c78bf4de5e925029232a171998 Author: Rodrigo Aliste <raliste@googlemail.com> Date: Sat Oct 16 15:36:51 2010 -0300 css: Don't hide anchor links when navigating. Fixes bug #618379.
Comment on attachment 172501 [details] [review] Don't hide anchor links when navigating. Thanks a lot!