Nic Pulford wrote:

> It took some working out as it does not work with an anchor, you need
>  a div Then if the height of the header is 50px then the div style 
> should be margin-top: -50px; height: 50px; width: 1px; it then goes 
> fine for right at the top. By increasing both values you can bring 
> the anchor point down a bit which is good.

It does work with an anchor if the display property is set correctly.
Both 'display: block' and 'display: inline-block' will make an anchor
controllable.

Try this...

#item4 {display: inline-block; padding-top: 100px!important; width: 10px; }

<a id="item4"> testing </a>

...and you'll get the desired effect in all supporting browsers.
Add offset that suits the actual layout.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/

Reply via email to