![]() I tried using the offsetTop property to match the offsets, but havent made it work yet.īut theoretical, one could then use position sticky on the background images to mimic the position fixed effect without content jumps or the annoying (seeming) bug. If you like, you can actually put your taskbar on top, the bottom or any side of the screen you like. To keep it from jumping around again, right click on the taskbar, and then select Lock the Taskbar. Set this to absolute and use javascript to get the element's offset top (of which the background is supposed to belong to) and offset the background's "top" property to be equal the the div it belongs to. Once you get close enough, it'll jump right into place. I thought i had a solution: place a div behind the rest of the site that holds (and stacks if you have a background per section like i do) in a wrapper. Which means that the pixels obstructed by the toolbar are just simply not being rendered when the toolbar disappears. Using height 709 - the red line does not show when the toolbar disappears!. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |