Hello
I have a problem trying to align tables using css styles. When I add this style to center the table:
the cursor remains in the same place, and I can't select the table in the new position:
The screen is the editor 2.6.3 running in FF 3; in FF 2.x, the selection takes all the block, and in IE 7, it doesn't even move!!
I am trying to add styles to the table, but the editor, sometimes can't show the styles added (specially, the styles concerning the alignment of the table)
any idea? can anyone help me?
Thanks in advance.
I have a problem trying to align tables using css styles. When I add this style to center the table:
<table width="200" cellspacing="1" cellpadding="1" border="1" style="margin: 0pt auto;"> <tbody> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> </tbody> </table>
the cursor remains in the same place, and I can't select the table in the new position:
The screen is the editor 2.6.3 running in FF 3; in FF 2.x, the selection takes all the block, and in IE 7, it doesn't even move!!
I am trying to add styles to the table, but the editor, sometimes can't show the styles added (specially, the styles concerning the alignment of the table)
any idea? can anyone help me?
Thanks in advance.
Re: Problem with tables a alignement with css
You should check that they know about the problem: http://bugzilla.mozilla.org/
Probably there's some bug filed, so try to search (the usual component is Core, Editor) before filing a new one.
The behavior in IE depends on the doctype, by default is rendered in quirks mode.
Re: Problem with tables a alignement with css
It's a problem from ff? How could I say it to my boss?
Thanks for the quick answer. I will try to put de DOCTYPE to strict and watch what happens with IE.
Re: Problem with tables a alignement with css
Show him this example:
Re: Problem with tables a alignement with css
I don't understand.
In FF 3, there is a bug, ok. But I have changed DOCTYPE to strict, and in IE 7, the behavior of my application is the same, but your example works.
Any other known bug in IE?
Thank you very much, and sorry if i am very annoying...
P.D.
If I use "margin:0 25%; width:50%", the table is centered in IE. Maybe there is a problem with "auto" value.