I keep this blog more as a notebook to myself than as an attempt to inform others about what I happen to be up to. That is why it tends to have a lot of code in it. A lot of it is stuff I am trying to remember or info I might like to look back on later.
This article treats a useful answer to a problem I have run into a few times before. It is centering a div in CSS when it is near the top of the page. I can’t take credit for discovering this. I found it at Zach Graeve’s website.
Anyway, here is the snippet of code that might prove beneficial:
position: absolute;
top: 0px;
left: 50%;
margin-left: (half the width of the div)px;
I needed the absolute positioning in order to force some code positioned far down in the document to the top of the page that appears in the browser. I have read that when document readers are enabled on browsers that they have to sort through all of the links before they can get to the content for handicapped readers.