After looking at the footer columns, I’m not really sure what you’re trying to accomplish, as in why are columns 2 and 3 wrapped? Also, what spacing are you trying to remove? Maybe an image of what you are trying to accomplish would help.
I put the code you shared together into a jsFiddle to help me better see what we’re working with and I’ve changed the fixed pixel widths to percentage width because it works nicer in the small result window… I’m guessing your layout has a fixed overall width.
Either way, check out this basic tutorial on how to use HTML5 + CSS3 to set up a multi-column layout (it’s point #10).
Oh and one last thing. In the PHP you shared above, the closing
is missing after each loop: