Hello,
I currently have a page that has a fair amount of information on it, divided into sections, adding anchor tags to each of these sections makes sense to help the user navigate around. However, because I have a fixed banner div at the top of the page, and the content is scrollable, I have an issue in that going to an anchor, puts the anchor at the top of the page, behind the fixed banner div.
After some searching on google I came up with this as the solution (in these forums).
However, as I cannot see the original code from the page being discussed I am perhaps struggling to understand something subtle I have missed from the solution (or in fact my problem was not an issue for the original poster due to differences in layout or design).
The page I am having trouble with is here, there are no actual links to the anchors at the moment (if only because I cannot think of a tidy way to put them in yet). The anchor names are shared with all of the sub headings.
Each small subsection has been placed in its own div, the attributes for these divs are:
The actual issue (which is immediately apparent if you view the page), is that the borders for the sub content divs are all messed up and out of alignment with where they should properly be. The website will have many pages that have similarly laid out information, so I am hoping to resolve my issue with this page and apply it to all of the rest. Please excuse the messy code, I have been trying to resolve this issue for some time now, and have tried all sorts of different methods to get around it.Code:.com { border-top-width: thin; border-bottom-width: thin; border-top-style: ridge; border-bottom-style: groove; border-top-color: #666666; border-bottom-color: #666666; margin-bottom: -200px; padding-top: 200px; }
Any help would be very much appreciated.



Reply With Quote
Bookmarks