What causes extra space and random alignment in my divs using the 960 grid system?

Posted by tomdot on Stack Overflow See other posts from Stack Overflow or by tomdot
Published on 2012-09-09T09:36:12Z Indexed on 2012/09/09 9:37 UTC
Read the original article Hit count: 275

Filed under:
|
|

I have an issue where elements in divs seemingly align randomly, not responding to any align tag, and where divs create extra space above or below its element. I'm using the 960 grid system and I have not altered the stock CSS file lest my fingers blow it up.

I've put up a test page here, and please excuse some of the dodgy code :-D

It's still in it's very early stages (as am I), but I don't feel I can move on until I can comfortably understand what is causing the issue.

The best example on that page is the bottom horizontal bar and elements underneath. The bar adds a few pixels of dead space, and the elements below that align to different parts of their respective divs.

Why is it that elements seemingly do not standardise their alignment given no instruction, and what causes extra space again where no instruction was given?

My own thought was to relatively position everything individually, but I'm worried this will cause issues and 'break' the grid. Other than that, I unno.

Thanks

© Stack Overflow or respective owner

Related posts about html

Related posts about css