Previous Message
Next Message

css tables no html

Sent by Paul Novitski on 18 February 2005 00:12


At 11:19 AM 2/17/2005, Mike Graber wrote:
>how do you I get a column to be the width of the largest entry of all
>of the rows.  We have tried several combinations of the code below but
>the width of the cell seems to be determined by each cell and not the
>entire column.


Mike,

Here's a technique that might work for your situation:

A block, unless it's given a specific width or floated to one side, will 
extend horizontally to fill the available space.

A vertical column of blocks will all extend to the available width of their 
container.

Therefore, wrap your divs in a container floated left (see example below).

Paul
_________________________

div#wrapper
{
         float: left;
}
div#wrapper div
{
         border: 1px solid black;
}
_________________________

<div id="wrapper">
         <div>Apple</div>
         <div>Banana Cake</div>
         <div>Cardomon Cookies</div>
         <div>Dandelion Wine</div>
         <div>Eggnog</div>
</div><!-- #wrapper -->
_________________________


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: