On 11 June 2011 01:02, Mark Rogers mark@quarella.co.uk wrote:
So, given that I want table-styled layout but shouldn't use table tags to describe the layout, and the following seems to work, is it "acceptable" to the purists?
Well, I consider myself a pragmatist rather than a purist, but yes, I think what you have meets both the spirit and letter of the standards (if you tidied it up a bit to make it 100% HTML compliant ;)).
However,
#menu, #content { display:table-cell; }
may give you problems with IE7 (which doesn't support it) and IE8 (which does, but requires a proper !DOCTYPE). http://en.wikipedia.org/wiki/Internet_Explorer#Market_adoption_and_usage_sha... suggests that IE7 + IE8 have a market share of around 38% last month (IE7 alone is 7%), but of course it depends on your audience. Either way, I'd suggest at least adding a DOCTYPE to get IE8 working OK and to get it through the W3C validator to satisfy my OCD ;)
Greg