A couple weeks ago, while doing some unrelated research, I came across a technique that I had somehow never heard of for absolute positioning in CSS. I want to post it here in case anyone else has missed out on this one.
There have been quite a few times where I wanted a div to be positioned absolutely and to have it’s top/left/etc. to be specified from its staticly-positioned parent, and not from the viewport. It turns out that all you need to do is give the parent position: relative and you can do exactly that.
Here’s the original article I read that goes in way more depth.
We are excited to launch our Guest Blogger program in January. Visit our Guest Blogger sign up and information page.
Trader Dan loves telling and listening to stories and learning about people and the world. Some folks call this a blog, or questions and answers, or a forum. Trader Dan is old fashioned and thinks of it as folks talking and having a good time.
Post anything. Talk about work, life, or play. Get and give advice and tips. This is a trading post so feel free to promote yourself, projects, or your business.
You need a SPOT to post new discussions on the community blog and comment on other people's posts.
The only real rules are don't spam or go around being rude for the sake of being rude. These things tend to peeve Trader Dan no end. But if you want to know more visit our policy page.
© 2007-2009 CoTradeCo, Coachella Valley Packaging, & Coachella Valley Trading Company
are part of the Shorebird Corporation
Community content is all rights reserved © by the contibutor of that content granting
CoTradeCo some limited non-exclusive usage rights, see our policies.


I swear we’ve been using this technique for a while. Or at least I used it recently (the past year) on some projects(s).
Nice to see it discussed in some length though. I haven’t had a chance to read the whole article, but I’m sure it will help me and a bunch of other people.
Though it looks like I should write a computers 201 about HTML and CSS to help our non-techy types understand what this stuff is about.