English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have been trying to align contents of cells in a table column but unable to so. Can someone give me the solution.

2007-08-31 02:11:14 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

5 answers

Hmm, well I'm not exactly sure how to do it in strict XHTML, but if you want the easy way to do it, use:


Check http://www.w3schools.com. I'm sure they'll have the info there.

2007-08-31 02:17:08 · answer #1 · answered by Dr. J. Argon M.D. 4 · 0 0

The css Fabian gave is correct.

Put it in an external style sheet and link it with
type="text/css" rel="stylesheet">
or between and like this:


You have the options of left, right or center for text-align and top middle or bottom for vertical-align

A good quick reference for css is: http://www.zvon.org/xxl/css1Reference/Output/

2007-08-31 11:24:25 · answer #2 · answered by Anonymous · 0 0

How do you want to align them? Use CSS! Remember that the tds don't inherit from elsewhere! So you have to set alignment for td, as
td { [alignment stuff]... ]

...then use 'vertical-align:' to go up and down and 'text-align' to go right and left for your alignment stuff within the td setting!

2007-08-31 11:24:01 · answer #3 · answered by fjpoblam 7 · 0 0

you should be using CSS for this as it is styling.

td {
text-align: left;
vertical-align: top;
}

2007-08-31 09:28:32 · answer #4 · answered by Fabian 2 · 4 0

Your text should be centered.

2007-08-31 09:20:10 · answer #5 · answered by beezee05 2 · 0 0

fedest.com, questions and answers