Re: [css-d] max-width in Safari/IE

2009-03-23 Thread Gunlaug Sørtun
Jack Blankenships wrote: > It seems to be that the table within the div or body element is > pushing the content out beyond the specified widths in Internet > Explorer. [...] If you have problems: link to the case, page, you have problems with. Bits of CSS don't make much sense without it. rega

Re: [css-d] max-width in Safari/IE

2009-03-23 Thread Gunlaug Sørtun
Jack Blankenships wrote: > Apparently there was a table there as well, and max-width does not > apply to a table very nicely in Safari or Internet Explorer. Can > anyone offer some more explanation on this? Have only tested for CSS table a year or so back, and it's a known behavior in Safari 3.

Re: [css-d] max-width in Safari/IE

2009-03-23 Thread Jack Blankenships
It seems to be that the table within the div or body element is pushing the content out beyond the specified widths in Internet Explorer. If I set the width on the table to 100% it forces the containing dom element to expand if the elements within the table can possibly have a width to do so (that

Re: [css-d] max-width in Safari/IE

2009-03-23 Thread Jack Blankenships
After experimenting some more I have come up with some code that seems to work in most browsers: .content { width:100%; max-width:960px; min-width:640px; margin-left: auto; margin-right: auto; } This can be applied to a body or div tag with an embedded table a

Re: [css-d] max-width in Safari/IE

2009-03-23 Thread Jack Blankenships
Apparently there was a table there as well, and max-width does not apply to a table very nicely in Safari or Internet Explorer. Can anyone offer some more explanation on this? Thanks, Jack On Mon, Mar 23, 2009 at 9:50 AM, Jack Blankenships wrote: > Apparently there was a table there as well, an

[css-d] max-width in Safari/IE

2009-03-23 Thread Jack Blankenships
Is there a way to get a max-width attribute to work in Safari and Internet Explorer? Supposedly both browsers suppourt it, but I can't find an example of either doing so. In theory I would like to add a class to a div like so: .container { width:100%; max-width: 960px; } I would