Re: CSS/tables and WORepetition design

2012-01-27 Thread Johnny Miller
Cool, then reload the page ( http://www.kahalawai.com/Pascal.html ) one more time to see how using the :last-child rule cleaned up the code. The epiphany I had lately regarding HTML is forget the CSS and just create the cleanest HTML possible. Once you have that just work backwards to create th

Re: CSS/tables and WORepetition design

2012-01-27 Thread Johnny Miller
Sorry. It's still morning here and once the coffee hit I couldn't put this down. If I understand you correctly, I think this is now right ;) http://www.kahalawai.com/Pascal.html On Jan 27, 2012, at 7:43 AM, Pascal Robert wrote: > Yeah, look like I won't have the choice of calculating the size

Re: CSS/tables and WORepetition design

2012-01-27 Thread Johnny Miller
Hi Pascal, Take a look at this real quick. I only tested it in Safari but I think it's right. You just need to tweak the CSS to get your borders and colors right. http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> .table {

Re: CSS/tables and WORepetition design

2012-01-27 Thread James Cicenia
No, you can just do a rowspan = " Some expression here" that equals it child's row count. so col1's row span would be a.child.count + b.child.count, then col2's row span would be child.count, etc. That is how I would do it. On Jan 27, 2012, at 10:24 AM, Pascal Robert wrote: > But again, I ne

Re: CSS/tables and WORepetition design

2012-01-27 Thread Pascal Robert
But again, I need to calculate the height :-) I guess I won't have the choice of calculating it. Related question: in a WORepetion, what you guys do for generate a unique ID for a div? I was thinking of taking the sanitizing the value of the first column + adding the primary key value (so the

Re: CSS/tables and WORepetition design

2012-01-27 Thread James Cicenia
Been there done that. James On Jan 27, 2012, at 9:35 AM, Jesse Tayler wrote: > an old, disgusting trick is to use a pixel wide clear image and set its > height or width to force it to minimum at least. > > but that's disgusting, so I didn't suggest it, I just mentioned it! HA! > > > > On

Re: CSS/tables and WORepetition design

2012-01-27 Thread Jesse Tayler
an old, disgusting trick is to use a pixel wide clear image and set its height or width to force it to minimum at least. but that's disgusting, so I didn't suggest it, I just mentioned it! HA! On Jan 27, 2012, at 10:26 AM, Pascal Robert wrote: > I still need to calculate that value. My fear i

Re: CSS/tables and WORepetition design

2012-01-27 Thread Pascal Robert
I still need to calculate that value. My fear is that doing this will be expansive since I will have to pre-calculate it. For example, for the A column, I will have to check how many items are in the stock and the transactions columns to be able to either set the rowspace attribute (for a ) or t

Re: CSS/tables and WORepetition design

2012-01-27 Thread James Cicenia
Couldn't you just use the "rowspan" attribute? James On Jan 27, 2012, at 9:02 AM, Pascal Robert wrote: > I'm trying to find a way to get a design to work, and I guess I'm reaching my > Web design skills to its limits. Anyway, I have to work on a form in a table > form. The problem is that ho