tirengarfio — 2010-03-23T17:26:38-04:00 — #1
i have this page.
Note: after login you will be redirected to another page. Then click again the link i mention.
Im trying to center the form using "margin: 0 auto" but it doesnt work.
Im also trying to align the labels on the right through "text-aling: right" but it doesnt work..
felgall — 2010-03-23T18:04:27-04:00 — #2
First off you need a doctype to put all browsers into standards mode so that they'll recognise the margin properly. Without that all browsers will behave differently.
luki_be — 2010-03-23T18:10:56-04:00 — #3
Haven't looked at the page but are you setting a width? Without a width the auto margins will not work...
felgall — 2010-03-23T21:11:12-04:00 — #4
It is in a table so it shouldn't need a width but it will need a doctype.
ryanreese — 2010-03-24T00:17:18-04:00 — #5
If you're talking about IE then yes, IE in quirks mode doesn't recognize auto margins. A doctype as mentioned above will fix this.