Sent by Roger Johansson on 14 July 2004 23:11
On 14 jul 2004, at 22.11, Marco Scoffier wrote:
>
> I would really love to have the #target just show up offset some
> distance from the top, without having to put 70px of white space
> everywhere (70px is needed to clear the header and look normal).
Try using the :target pseudo-class to add the spacing you need. I did a
quick test, and padding-top will do the job. So, if your target is
#importantstuff, #importantstuff:target {padding-top:70px;} should
work.
Note that :target does not work in Internet Explorer. No surprise
there. Mozilla and Safari support it. Not sure about Opera.
/Roger
--
http://www.456bereastreet.com/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/