Ok, I'm trying to set up a table-style data entry display, where several records are displayed for editing, one record per row. I was beating my head against a CSS problem in getting the rows to work, and I've reduced it to what appears to be a very basic positioning inconsistency in IE. You can see the page in its current form at .
Right now I'm letting each DIV tag occupy its own line, even though I want to line them up into rows via floats. The problem arises when I do my little design tapdance, switching between Firefox 1.0.2 and IE 6.0 (I'm running Windows XP). In Firefox:
, the text fields are flush against the left side of the container DIV. However, for some reason, in IE:
, the text fields get shifted to the right. It took me a while to figure this out, but for some weird reason, the distance of the spacing of the text fields is controlled by the margin-left property of the containing <div id="activity">; I'm using the margin to shift the main content area to the right of the navigation block. When I set #activity {margin-left: 13em;}, both #activity and the text fields are displaced 13em; when I change the margin to 20em, they are all displaced 20em. I can't figure out how the text fields could possibly be inheriting the margin-left property from #activity in IE, and explicitly setting the margins on them doesn't make any difference. Does anybody have any insight into what the hell is going on here?
Oh, I'll note that both the page and the CSS validate without a hitch on the w3.org website.
Right now I'm letting each DIV tag occupy its own line, even though I want to line them up into rows via floats. The problem arises when I do my little design tapdance, switching between Firefox 1.0.2 and IE 6.0 (I'm running Windows XP). In Firefox:
, the text fields are flush against the left side of the container DIV. However, for some reason, in IE:
, the text fields get shifted to the right. It took me a while to figure this out, but for some weird reason, the distance of the spacing of the text fields is controlled by the margin-left property of the containing <div id="activity">; I'm using the margin to shift the main content area to the right of the navigation block. When I set #activity {margin-left: 13em;}, both #activity and the text fields are displaced 13em; when I change the margin to 20em, they are all displaced 20em. I can't figure out how the text fields could possibly be inheriting the margin-left property from #activity in IE, and explicitly setting the margins on them doesn't make any difference. Does anybody have any insight into what the hell is going on here?
Oh, I'll note that both the page and the CSS validate without a hitch on the w3.org website.