Right, but that would give me the count of visible columns. Is there a way to 
determine the number of all columns, including those outside the viewport?

Thanks for your response,

Chris

-----Original Message-----
From: Tim Climis [mailto:[email protected]] 
Sent: July-28-11 9:42 AM
To: Hardie, Chris; [email protected]
Subject: RE: [css-d] FW: Multi column layout

> Is there some way to make the width of those columns predictable
> without adding a non-auto width to the div?

It depends on how predictable you'd like.  From my experimenting, it
created columns with a min-width of 380px, and a max-width of
(presumably) 759px.  (How many 380px columns fit in 700px?  2.  So
make 2 equal width columns to fit the available space.)

So the width of a column should be:

columnCount = int(clientWidth/380);
columnWidth = ( clientWidth - (columnCount-1)*40 )/columnCount;

---Tim



______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to