tags:

views:

21

answers:

2

Hello i have got a table with 3 columns.

And i want that the third column is aligned to the right of the upper element und the other 2 columns to the left

(left column) (middle column)                                      (right column)

is there a way todo this via css or something?

greetings

+1  A: 

use width:100% on the table and the middlecolumn

Vinay B R
works for methanks a lot:)
CaptnLenz
+1  A: 

there are a few ways to do what you want. The most basic is to change the alignment directly in the tag

<td alignment='left'>data1</td><td alignment='right'>data1</td><td alignment='left'>data1</td>
<td alignment='left'>data2</td><td alignment='right'>data2</td><td alignment='left'>data2</td>
....

if you need to change something else (css style) you could create a class like .firstColumn and .secondColumn on each <td>

i tried to change directly the column but that doesn't work (http://stackoverflow.com/questions/3658693/html-table-colgroup-tag-not-working)

pleasedontbelong