The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Hey Chris. Why the positioning

  • # August 18, 2008 at 1:21 pm

    in your latest article for the content slider, you used position:relative on the page-wrap and a few other places. Why did you need to do that.

    2. a suggestion. Do an article on why these positions need to be used and what happens if you lose the positioning. I know position:relative takes the element out of the normal flow. But it doesn’t move, so why? Still trying to wrap my head around it.

    # August 18, 2008 at 1:29 pm

    This reply has been reported for inappropriate content.

    I use relative positioning, because I use absolute positioning to "push" the slider exactly where I want it to be with top and left values. Relative positioning is strange in that it doesn’t really take it out of the flow, it just enables a few things that the default position (static) doesn’t allow. Definitely read this to see how I like to use relative positioning: … sitioning/

    # August 18, 2008 at 3:38 pm

    This reply has been reported for inappropriate content.

    I forgot about that article. I do believe I have read it. But what is confusing is why not just nudge the elements into place with margins and padding. wouldn’t that creat the same effect as the positioning?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed