Josh Renaud wrote:[color=blue]
> I'm still trying to solve a problem I have experienced in Safari.
> This is my third post on the subject. I'm hoping someone can shed
> some light.[/color]
I suspect that there aren't a lot of Mac users here. When I've had
problems with IE/Mac, I've often had to solve them without assistance,
or at least without as much assistance as I receive with non-Mac
platform browsers.
[color=blue]
> The problem is that, in Safari, a table with no specified width
> inside a containing div with a specified width seems to break out
> of that div when margins are applied to the table.[/color]
I don't have a Mac, so I cannot test. I can test this for you at my
sister's next time I'm there, but that could be months down the road.
[color=blue]
> It seems the table's width defaults to 100% of the parent div.[/color]
If so, that would be wrong. It should use the width it needs. Have you
tried a test case of a table with dummy data in <body> by itself? Set
borders, and tell us how much of the browser window it takes up. It
should not take up the whole window width unless the data requires it.
I'm curious to know the results.
[color=blue]
> But when I apply left and right margins to the table, instead of
> the table collapsing, it keeps this 100% width and extends beyond
> the right border of the containing div.[/color]
The width of an element in css box model is the content width + margin
+ padding + border. So this part might be correct behavior. But the
content width should not be 100%; that's where the error lies.
[color=blue]
> Can anyone help me understand why Safari behaves the way it does?[/color]
Nope. Sorry. I know little about the codebase.
[color=blue]
> Thanks for any ideas you all can offer.[/color]
Have you tried replacing the table's margins with padding on the
containing div?
--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/