Previous Message
Next Message

Bizarre behavior with id as # anchor target

Sent by Philippe Wittenbergh on 20 May 2008 06:06


On May 20, 2008, at 10:10 AM, Kathy Wheeler wrote:

>  am not sure if this is a css issue, html issue or browser rendering
> issue (leaning towards the latter myself) but it has me stumped.
>
> The following (Drupal generated) page validates XHTML 1.0 Strict and
> with only 2 minor css issues (max-min) I'm prepared to put up with.
> But when it is loaded with the #attachments reference in the url (the
> target is an id on the attachments table) instead of loading the
> whole page and jumping down to the target, everything on the page
> between the header image and attachments table simply disappears -
> including most of the menu!
>
> http://ww2.birdkeepers.com.au/node/21
>
> http://ww2.birdkeepers.com.au/node/21#attachments
>
> It's been tested to (mis)behave the same with SeaMonkey, Firefox,
> Safari and IE6, Mac and PC.
>
> I've gotten around the problem by stripping out any reference to
> "#attachments" in the link urls, but I would like to know if there is
> any way to get the old (jump down the *fully* rendered page) behavior
> back. Is there a css solution (preferred), html solution, or no real
> "solution"?

That is a known side-effect of using overflow:hidden. As far as I can  
tell, the browsers mentioned aren't doing anything wrong, or rather  
they're doing what is expected: hide the overflown content.
This page has more:
<http://www.positioniseverything.net/articles/onetruelayout/appendix/equalheightproblems#linking 
 >

No real solutions, look for a slightly different technique.

Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: