CSS always sounds like a wonderful solution to all my cross-browser layout problems, and yet every time I use it, I end up completely baffled about how it can behave so completely differently from browser to browser. View this page in IE, and it behaves exactly how I want it to: http://www.codsquad.com/~galt/csstest.html View it in firefox, and it’s severely broken. Firefox seems to ignore my width and height specifications on my boxes, and doesn’t seem to do anything useful with “display: inline;”.
Now, I’ve specified my DOCTYPE as HTML 4.0 TRANSITIONAL, which should probably change, but my question for the CSS-savvy out there is: how do I achieve this simple layout behavior in a portable way?
The goal is to have multiple blocks of whatever that behave as atomic blocks, positioning themselves relative to one another in an “inline” manner, rather than in a “block” manner. And I want to do it without using absolute positioning, because the whole thing needs to flow as the window resizes.
Any ideas? Why so hard?