469,603 Members | 2,285 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,603 developers. It's quick & easy.

Why does border affect margin in centered fixed width div in NS7.1?

Example: http://pages.prodigy.net/randyv/centerprb.htm

The desired effect is a fixed width left margin with a fixed width div
centered in the right side. If the browser is resized to become very
narrow (less than 640px in this example), the right side centered div
should stop at the margin and horizontal scroll bar appear as the
window gets extremely narrow.
IE6 and Opera 4.11 display all the examples the same way.
The top row is a table and behaves the same in all browsers I have
tested. The next row shows the difference, if you view it in IE6 and
NS 7.1. The third row shows that NS7.1 displays "correctly" if the
centered div has a border. The fourth is just a test to see if setting
the background and not the border would affect the issue.
Netscape ignores the margin of the parent, unless there is a border
around the centered, fixed width div.
Perhaps I am misinterpreting what is happening, but that is what I am
Can anyone help me undstand this behavior?
Thanks in advance for any enlightenment on this issue.

Jul 20 '05 #1
0 1731

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Rolf Brauser | last post: by
1 post views Thread by Trent L | last post: by
reply views Thread by smokeyd | last post: by
16 posts views Thread by FuzzyLogik | last post: by
6 posts views Thread by Hacking Bear | last post: by
1 post views Thread by moondaddy | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.