On Sun, May 9, 2010 at 2:05 PM, Thierry Koblentz <n...@tjkdesign.com> wrote: >> >> I believe what the OP is after is to achieve the same behavior as if >> the >> >> banner/header was a top frame. >> >> -- >> >> Regards, >> >> Thierry >> > >> > Whoops. Then perhaps these will give him some ideas to play with... >> > <http://limpid.nl/lab/css/fixed/> >> > <http://www.gunlaug.no/tos/moa_8d.html> >> >> Yes, Frames without frames is exactly what I want. Hopefully the URLs >> you gave as well as the ones on those pages will provide the answer. I >> have a basic understanding of how to do it. Maybe I will discover >> something new or discover an error in my code. I have a lot of reading >> to do. Thanks. > > These URLs won't help you. > To find a solution, you need first to understand the problem. > A browser scrolls a document until the named anchor reaches the top of the > "window/frame" it is in. > So as long as your header is part of that document, named anchors will move > behind it. Padding, margin, top, whatever you want to use will not change > that behavior. Unless of course you are ok to increase the gap between the > sections. > Because in this case, you could use *top padding* on the paragraphs. That > way the anchor position does *not* changed, but the position of the text > will. And that can "clear" the header. > But do you want a gap between those sections?
What you are describing is almost exactly what I am doing now, which I learned from trial and error. The wide margin has to be around the anchor and the anchor has to above the text that would normally have the anchor. Apparently this wasn't planned or thought of by the W3C. The only browser that does this without a work around with HTML and CSS is IE. That is about the only thing IE does that I like. Hence the initial reason for my question. I thought it could be done and I was just not finding what I needed. I wonder how IE does it? I hate MS so much that I use Linux and refuse to use any MS based software on a daily bases. I am glad I am NOT in a situation that I don't have a choice. I only use a legal copy of W2K pro in a VM on a few occasions when I get a project that can't be done any other way. Sometimes I have to use Autodesk software which is deliberately designed to work on windows only. -- "If the American people ever allow private banks to control the issue of their money, first by inflation and then by deflation, the banks and corporations that will grow up around them, will deprive the people of their property until their children will wake up homeless on the continent their fathers conquered." -Thomas Jefferson This has been happening for the last 100 years. ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] 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/