| | |
|
|
|
Mozilla/NS - Table align=center not working |
| message from jip on 21 Jul 2004 |
I am in the prelim stages of a new site design
http://www.imacs.com/claimshoppe/.
When I preview my pages in Mozilla/NS the tables that have an align =
center, are not being rendered as such, instead they are rendering as
align=left/default. This is not the case in IE.
The table is nested within a table cell for which the "host" <td> tag has no
styles applied, only the nested table tag has an "align=center".
Below are the styles used for all tables and cells and then of course the
exceptions are designed by creating a new style.
/******** snippet of style sheet **************/
table {margin: 0px; border: 0px; background-color: #FFFFFF;}
table td{vertical-align:top;}
td, th {
font-family: Arial, sans-serif;
font-size: 12px;
line-height: 18px;
color: #000000;
text-align:left;
}
Anybody see something obvious on why the Mozilla/NS browsers render the table
to align=default/left?
|
| Murray *TMM* replied to jip on 21 Jul 2004 |
If you assign a width to the table, and then give it -
margin: 0 auto;
it will have 0 top and bottom, and be center aligned.
|
| jip replied to jip on 21 Jul 2004 |
I just commented out the "margin: 0px;" and that fixed the problem.
|
|
Archived message: Mozilla/NS - Table align=center not working (Macromedia Dreamweaver)