html - How to adjust a href="#object" -
when using name="object" , having page scroll object using href="#object" id possible adjust page lands. rather top of window, few pixels down. have fixed navigation bar when scrolling, content goes behind nav bar visible. when use href="#object" part of cut off because behind nav bar. fixes? thank you.
change top padding , margin styling on element named anchor. example, if header 100 pixels tall, give named anchor margin-top of -100px , padding-top of 100px.
see jsfiddle example.
in example, link bring bolded text ('vestibulum ante ipsum') 100px top of page.
Comments
Post a Comment