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

Next Office Hours Session: "Programming Fundamentals" Dec 02 - 2:00 PM Eastern

Div alignment problem!

  • # June 27, 2009 at 10:36 am

    The most obvious way is to make #container position: relative and then absolutely position everything inside it.
    If you insist on using floats then the only way I can see is to put block 5 inside a div with block 1 and float that left. At the moment it’s working exactly as it should, block 5 comes after block 4 in the markup so it is clearing block 4 and then floating left.

Viewing 1 post (of 1 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