Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  

[solved] DIV arrangement behaviour?

Recommended Posts

Working on some new layout ideas, and can't figure out why there is a gap in the div arrangements here:


They are appearing in the correct order, but I cannot figure out why two "spots" are skipped before the fourth item is placed, and then continues as it is supposed to. I've checked both in IE and Firefox. You should be fine seeing code generated from your browser... It almost looks like there is something in the way, are they conflicting with each other since they have no height attribute set? If so, what is the best way to get past that?

This is still in progress but I wanted to get the general idea down before playing with additional spacing and coloring of the individual boxes... :unsure:

Update: Yes, the height property needs to be set properly otherwise the box height varies too much. Also needed to clear some two of the divs inside the container itself.

Edited by Tripredacus

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.