varesources
asked on
How do I make a table left align in css?
The table is showing up centered on the page. What should I do to the code below to make the table left justified?
table.somename {}
TR.somename { text-align: center }
TD.somename { }
FONT.somename { COLOR: #cc0000; FONT-FAMILY: Arial,Tahoma,Helvetica,Sans-serif; FONT-SIZE: 14px; font-weight: bold }
FONT.somename { COLOR: #000099; FONT-FAMILY: Arial,Tahoma,Helvetica,Sans-serif; FONT-SIZE: 14px; font-weight: bold }
ASKER
Correct me if I am wrong but doesn't text-align: left only justify the text and not the table?
I did not write this and I do not know a whole lot about CSS so I do not know if something is missing or not.
I did not write this and I do not know a whole lot about CSS so I do not know if something is missing or not.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked, Thanks!
your welcome
TR.somename { text-align: center }
To this
TR.somename { text-align: left }
Also, I'm not sure but it looks like your style for the table named "somneone" is empty. There is an opening and a closing brace with no code in between.
table.somename {}
Put some styling code inside it. Also, line 5 over rides line 4 as it is the latest command to style your font. Where did you get this whacky CSS from?