Ask Trader Dan       Contact       About       Take a tour
Sign in | Sign up

CSS relative absolute positioning
Jason Scragz 4 months ago // 1 response // Subscribe Digital Life Tips, tricks, and advice

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.

Responses

beingzoe

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.

 
You need to SIGN IN or SIGN UP to respond!

Start a new discussion

Post in this community and topic

Find more info on CoTradeCo

Content loading: If you continue to see this message you may have disabled JavaScript and/or CSS.

Learn more about the CoTradeCo Guest Blogger program

We are excited to launch our Guest Blogger program in January. Visit our Guest Blogger sign up and information page.

Coming January 21st

Credit processing for new businesses
Ryan Bates, Credit Processing International by

in the Business Interests community
Insider tips on setting up credit card processing for your business from an account manager.
Coming January 21st

Composting at home
by Tammy Bowser, Gardener & Environmentalist

in the Green Life community
Tammy, a long time environmentalist and certified composter and worm bin operator (and member of the CoTradeCo community), shares some advice on how to get started composting at home to reduce trash, gain valuable soil for home gardening projects, and generally make the world a better place.
Coming January 21st

Honor Crew Stagehands program
by Donna J. Flor, California Center For the Arts

in the Stagehands community
Donna J. Flor, technical director at the California Center for the Arts, Escondido, discusses the newly created Honor Crew Program where high school students from around North San Diego County are given the opportunity to run a professional show in a working venue.
What about you or your company?

Your article here
by You, your speciality

in Any community
Everybody is a specialist in something. Share your knowledge and get some exposure for your business, projects, and ideas.
Coming January 28th

Tips for renting a theater
by David Symanski, California Center For the Arts

in the Stagehands community
David Symanski, Rental Coordinator at the California Center for the Arts, Escondido, discusses tips, tricks, and advice for maximizing your experience, event, and show when renting a theater.

About this community

JOIN the Digital Life community
Computers, life, and business

About posting to community blogs

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.