Previous Message
Next Message

Tabular data, align columns

Sent by Dan Kletter on 27 September 2005 22:10

I sent a post yesterday about aligning table columns differently in a
semantic way. I think I have figured out what the solution should be.
Using <colgroup> is perhaps the answer.

I need to have the Item col align left, Qty col align center and the
Amount col align right.

Will this work?

		<col align="left" />
		<col align="center" />
		<col align="right" />
			<th scope="col">Description</th>
			<th scope="col">Quantity</th>
			<th scope="col">Min. Donation</th>
			<td><label for="Item 1">Artist Shirt and Hoodie Combo</label></td>
			<td><input type="text" name="item_1" /></td>
			<td><label for="Item 2">Girlie Shirt</lable></td>
			<td><input type="text" name="item_2" /></td>
		<td><input type="submit" value="Submit Gifts" /></td>

Also, if I use pseudo-element :before can I align the Amount col by
decimal point?


Yes.  Beautiful, wonderful nature.  Hear it sing to us: *snap*  Yes.  natURE.
css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message