Results 1 to 3 of 3
Jan 24, 2013, 12:14 #1
How to alter the vertical positioning of a floating table of contents box
On this page > http://canvas.clickbump.com/awards-honors/
I have a "table of contents" box which allows the user to toggle sections of the page into view based on the appearance of a couple of anchors in the markup.
I'm looking for ideas on how I can alter the box position so that it appears as if it were floated to the right of the current anchor that its linked to.
for example, when you click on the "Anchor 2" link, the page scrolls to the position where that anchor exists ("Heading Two"). I would like the box to move so that its now floated to the right of "Heading Two" instead of its default position at page load.
I'm thinking that this will probably require jQuery to do an append onto the currently active anchor, but I want to be sure there's no way to do it with CSS first.