Re: [css3-layout] Issues/suggestions for Template Layout Module

On Apr 28, 2009, at 7:45 AM, Tab Atkins Jr. wrote:

>> Actually, you need borders as soon as you put more elements inside  
>> the
>> slot, and you want a border/padding covering the whole slot without
>> using additional elements.
>> You can fake it setting border-top on the first element, border- 
>> bottom
>> on the last and left / right on elements in the middle, but I'm not
>> sure that is the way to go (you most of time need additional  
>> classes /
>> IDs for those elements).
>> This also applies if you have a template row/column greater than the
>> element inside the slot, and you want to align borders between slots.
>
> Giovanni got it in one.  Both of those are exactly my reasons for
> wanting borders on slots (and padding).  The draft essentially creates
> a phantom container element, and I want to be able to *style* that
> container!

I agree. It would be very useful design-wise to be able to have a  
column-rule-like border that extends through several slots, even if  
they were auto-sized due to content in some other slot. It would also  
be nice to have the option of having collapsed borders. Wouldn't this  
be relatively simple if each slot was just display:table-cell?

Received on Tuesday, 28 April 2009 14:56:57 UTC