The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

inconsistent form alignment in IE6/IE7

Major newbie here -

I have a simple form that I wish to align. My problem is that the alignment works in some IE6 browsers and not others. Ditto IE7. IE6 on XP Pro. IE7 on XP Pro and Vista. (Didn't work on Vista). I took the CSS from Rachel Andrew's book. Also the trick with wrapping the controls in <div>. Here's the style4.css:

Thank you for your quick response. Actually, this is all there is. The website I'm building will have many forms. This was a test page to determine whether the styling would render correctly. Which it did on some machines and not on others.

The html is in a file called FormLayoutTest.html. I simply put that and style4.css in a folder on each test machine's hard drive and brought the html page up in the machines browser.