Page 1 of 1

table alignment

Posted: Fri Nov 25, 2005 9:22 am
by php3ch0
I have a problem (surprise surprise)

When I create a table all of the cells default align to the centre. They used to align to the left and I don't know what I have changed It means going through my whole project and making sure all alignment is aligned to the left.

Could it be something have done in css?

css code:

Code: Select all

.body,td,th {
	font-family: Comic Sans MS;
	font-size: 14px;
	font-style: normal;
	line-height: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	color: #000000;
}
Please can someone help!

Posted: Fri Nov 25, 2005 9:55 am
by neophyte
Can you post a link to the page(s)?

Posted: Fri Nov 25, 2005 11:15 am
by Grim...
In IE, cells inherit the alignment from parents, so if your page has <div align="center"> on it anywhere the cells will align to the center.
FF and Opera don't do this. You'll have to stuff an align="left" into each one (or maybe you can put it in the <tr>, I don't know).

Posted: Fri Nov 25, 2005 2:27 pm
by pickle
if, in your CSS, you define text-align:left !important, it *should* be given precedence over other text alignment declarations - that's what the !important is supposed to do.

Also, this sounds client-side, so I'm moving it.