Topic: Centering a Nested Table (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: Haverhill, MA, USA |
posted 07-13-2005 19:31
I am having problems centering a nested table . here is the URL... |
Paranoid (IV) Inmate From: Florida |
posted 07-14-2005 00:39
http://validator.w3.org/ |
Nervous Wreck (II) Inmate From: Haverhill, MA, USA |
posted 07-14-2005 15:10
Thanks for the heads up. I fixed all the validation issues, but my form is still aligning to the left. Is there any way to fix this? |
Paranoid (IV) Inmate From: France |
posted 07-14-2005 15:33
FWIW I just checked in FF1.0.4 and the form was perfectly centered. In IE6 it wasn't. |
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 07-14-2005 15:45
quote:
|
Nervous Wreck (II) Inmate From: Haverhill, MA, USA |
posted 07-14-2005 15:56
I'll try out the margin option. The reason I use tables for layout is because the support for any other method is bad. In other words, the guy who runs my company better be able to see it perfectly in AOL or I'm dead. |
Paranoid (IV) Inmate From: France |
posted 07-14-2005 16:05 |
Nervous Wreck (II) Inmate From: Haverhill, MA, USA |
posted 07-14-2005 16:44
Every site I've seen that is designed without tables never looks the way the designer intended. I know it's the way everyone is supposed to be doing it, but if it doesn't work than why institute the methods currently? |
Nervous Wreck (II) Inmate From: Haverhill, MA, USA |
posted 07-14-2005 16:52
Also, how do I set the margin for the table? Do I use a div tag with a css tag? Is there a margin attribute for the table tag? |
Paranoid (IV) Inmate From: Florida |
posted 07-14-2005 17:23
quote:
quote: Show me any site that works the same in all browsers. quote:
code: table { margin: 0 auto; } |
Maniac (V) Inmate From: under the bed |
posted 07-14-2005 17:32
quote:
|
Nervous Wreck (II) Inmate From: Haverhill, MA, USA |
posted 07-14-2005 17:34
I already did table {margin: 0 auto;} and it's not working. That's what it's currently set to in the CSS document. |
Nervous Wreck (II) Inmate From: Haverhill, MA, USA |
posted 07-14-2005 17:40
Like I said before, the people I have to answer to view the web with old browsers and explaining why it isn't working would be like talking to a rock. |
Paranoid (IV) Inmate From: France |
posted 07-14-2005 17:54
quote: You anwsered the question yourself : because that's way everyone is supposed to do. Standards are made to be used. Since they haven't been for years, it did not encouraged the browser vendors to comply to them thus the buggy rendering engines. It's time for a change. quote: Of course. However if you love nested tables you could aswell nest the form in table and set the align attribute of the parent TD to center. Or you could also set the padding of the said TD. Or you could position the form in absolute to the center of the TD and set the margin to - half the width of the form ... |
Nervous Wreck (II) Inmate From: Haverhill, MA, USA |
posted 07-14-2005 19:35
I've tried everything but the positioning absolute to the center of the TD. Why is this not working! It seems like such a simple task to make the content inside a TD cell center within that cell whether it be an image or an entire nested table. |
Paranoid (IV) Inmate From: London |
posted 07-15-2005 11:37
since you've got a fixed layout (the widht doesn't change) have you thought about specifying the margin of the inside table? Or failing that put padding on the holding <td>. |
Nervous Wreck (II) Inmate From: Haverhill, MA, USA |
posted 07-15-2005 21:11
I want to thank everyone for their help. Nothing worked so I cheated. That's life. |
Bipolar (III) Inmate From: Rochester, Ny |
posted 12-22-2005 08:33
With all the talk of designing sites in CSS. I have been trying to switch from tables to CSS. Anyone know any good sites that teach this? Or at least site design in CSS? |
Paranoid (IV) Inmate From: London |
posted 12-22-2005 11:21
Why of course! |
Bipolar (III) Inmate From: Rochester, Ny |
posted 12-23-2005 01:32
Thanks alot Blaise. You were a big help! |