From larry.martell at gmail.com Tue Jul 1 04:00:48 2014 From: larry.martell at gmail.com (Larry Martell) Date: Tue, 1 Jul 2014 07:00:48 -0400 Subject: [html5] table with fixed headers Message-ID: I am trying to implement a table with fixed headers using the concepts from this page: http://www.imaputz.com/cssStuff/bigFourVersion.html# When I implemented the CSS from that page, my table columns are not aligned with the table headers. http://jsfiddle.net/softvar/yL84C/ I was able to 'fix' this by explicitly setting the cell size: http://jsfiddle.net/cFr38/ But that doesn't really work well for my app as I have 10 different tables the user can display, and they each have 25-35 columns, and I do not necessarily know in advance how wide the data will be. Currently, without the fixed headers, I do not specify the column width and they are automatically sized. Is there any way to get fixed headers without explicitly setting the width of the table cells? From mgainty at hotmail.com Tue Jul 1 06:27:58 2014 From: mgainty at hotmail.com (Martin Gainty) Date: Tue, 1 Jul 2014 09:27:58 -0400 Subject: [html5] table with fixed headers In-Reply-To: References: Message-ID: white-space: nowrap this song has no title
NAME This is a short message TIME
NAME OTHER This is a llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloooooooooooooooonnnnnnnnnnnnnngggggggggggggggggggg message TIME_VERY_LONG_FORMAT
*Saludos Cordiales desde EEUU* Mart?n _________________ > Date: Tue, 1 Jul 2014 07:00:48 -0400 > From: larry.martell at gmail.com > To: help at lists.whatwg.org > Subject: [html5] table with fixed headers > > I am trying to implement a table with fixed headers using the concepts > from this page: > > http://www.imaputz.com/cssStuff/bigFourVersion.html# > > When I implemented the CSS from that page, my table columns are not > aligned with the table headers. > > http://jsfiddle.net/softvar/yL84C/ > > I was able to 'fix' this by explicitly setting the cell size: > > http://jsfiddle.net/cFr38/ > > But that doesn't really work well for my app as I have 10 different > tables the user can display, and they each have 25-35 columns, and I > do not necessarily know in advance how wide the data will be. > Currently, without the fixed headers, I do not specify the column > width and they are automatically sized. Is there any way to get fixed > headers without explicitly setting the width of the table cells? > _______________________________________________ > Help mailing list > Help at lists.whatwg.org > http://lists.whatwg.org/listinfo.cgi/help-whatwg.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From larry.martell at gmail.com Tue Jul 1 09:19:07 2014 From: larry.martell at gmail.com (Larry Martell) Date: Tue, 1 Jul 2014 12:19:07 -0400 Subject: [html5] table with fixed headers In-Reply-To: References: Message-ID: Thanks very much for the reply Martin. But this doesn't seem to fix my problem - i.e. the column headers are not aligned with the data: http://jsfiddle.net/34Fd5/ On Tue, Jul 1, 2014 at 9:27 AM, Martin Gainty wrote: > white-space: nowrap > > > > this song has no title > > > > > > > > > > > > > > >
NAMEThis is a short messageTIME
NAME OTHERThis is a > llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloooooooooooooooonnnnnnnnnnnnnngggggggggggggggggggg > messageTIME_VERY_LONG_FORMAT
> > > > *Saludos Cordiales desde EEUU* > Mart?n > _________________ > > >> Date: Tue, 1 Jul 2014 07:00:48 -0400 >> From: larry.martell at gmail.com >> To: help at lists.whatwg.org >> Subject: [html5] table with fixed headers > >> >> I am trying to implement a table with fixed headers using the concepts >> from this page: >> >> http://www.imaputz.com/cssStuff/bigFourVersion.html# >> >> When I implemented the CSS from that page, my table columns are not >> aligned with the table headers. >> >> http://jsfiddle.net/softvar/yL84C/ >> >> I was able to 'fix' this by explicitly setting the cell size: >> >> http://jsfiddle.net/cFr38/ >> >> But that doesn't really work well for my app as I have 10 different >> tables the user can display, and they each have 25-35 columns, and I >> do not necessarily know in advance how wide the data will be. >> Currently, without the fixed headers, I do not specify the column >> width and they are automatically sized. Is there any way to get fixed >> headers without explicitly setting the width of the table cells? >> _______________________________________________ >> Help mailing list >> Help at lists.whatwg.org >> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org From webmaster at tsmchughs.com Tue Jul 1 09:29:54 2014 From: webmaster at tsmchughs.com (Brian Tremblay) Date: Tue, 01 Jul 2014 09:29:54 -0700 Subject: [html5] table with fixed headers In-Reply-To: References: Message-ID: <53B2E202.3030609@tsmchughs.com> On 7/1/14, 9:19 AM, Larry Martell wrote: > > On Tue, Jul 1, 2014 at 9:27 AM, Martin Gainty wrote: >> >>> >>> >>> this song has no title >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>
NAMEThis is a short messageTIME
NAME OTHERThis is a >>> llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloooooooooooooooonnnnnnnnnnnnnngggggggggggggggggggg >>> messageTIME_VERY_LONG_FORMAT
>>> >>> >>> >>> Is there any way to get fixed headers without explicitly setting >>> the width of the table cells? >> >> white-space: nowrap > > this doesn't seem to fix my > problem - i.e. the column headers are not aligned with the data: I don't know what you mean. I pasted your page into my browser, and there are 2 rows with 3 columns each, lined up as I'd expect. What do you expect to happen that doesn't? -- Brian Tremblay From larry.martell at gmail.com Tue Jul 1 09:43:09 2014 From: larry.martell at gmail.com (Larry Martell) Date: Tue, 1 Jul 2014 12:43:09 -0400 Subject: [html5] table with fixed headers In-Reply-To: <53B2E202.3030609@tsmchughs.com> References: <53B2E202.3030609@tsmchughs.com> Message-ID: On Tue, Jul 1, 2014 at 12:29 PM, Brian Tremblay wrote: > On 7/1/14, 9:19 AM, Larry Martell wrote: >> >> >> On Tue, Jul 1, 2014 at 9:27 AM, Martin Gainty wrote: >>> >>> >>>> >>>> >>>> this song has no title >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>
NAMEThis is a short messageTIME
NAME OTHERThis is a >>>> >>>> llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloooooooooooooooonnnnnnnnnnnnnngggggggggggggggggggg >>>> messageTIME_VERY_LONG_FORMAT
>>>> >>>> >>>> >>>> Is there any way to get fixed headers without explicitly setting >>>> the width of the table cells? > >>> >>> white-space: nowrap > >> >> this doesn't seem to fix my >> problem - i.e. the column headers are not aligned with the data: > > I don't know what you mean. I pasted your page into my browser, and there > are 2 rows with 3 columns each, lined up as I'd expect. What do you expect > to happen that doesn't? Please look at this fiddle: http://jsfiddle.net/34Fd5/ From larry.martell at gmail.com Tue Jul 1 12:19:20 2014 From: larry.martell at gmail.com (Larry Martell) Date: Tue, 1 Jul 2014 15:19:20 -0400 Subject: [html5] table with fixed headers In-Reply-To: References: <53B2E202.3030609@tsmchughs.com> Message-ID: Maybe if I ask this question a different way, I can figure out an answer. Normally when I create a table I apply no CSS to it and it just does the right thing, e.g.: http://jsfiddle.net/u6ULk/ But I want the table to be scrollable with a fixed header, so I do this: http://jsfiddle.net/mrLVG/ >From testing I found that I have to have display: block; on both tbody.scrollContent and thead.fixedHeader tr or I do not get the scrollbars and fixed headers. But it is also the display: block that seems to be causing the misalignment. Is it possible to have a scrolling table with fixed headers without explicitly specifying the table cell sizes? On Tue, Jul 1, 2014 at 12:43 PM, Larry Martell wrote: > On Tue, Jul 1, 2014 at 12:29 PM, Brian Tremblay wrote: >> On 7/1/14, 9:19 AM, Larry Martell wrote: >>> >>> >>> On Tue, Jul 1, 2014 at 9:27 AM, Martin Gainty wrote: >>>> >>>> >>>>> >>>>> >>>>> this song has no title >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>
NAMEThis is a short messageTIME
NAME OTHERThis is a >>>>> >>>>> llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllloooooooooooooooonnnnnnnnnnnnnngggggggggggggggggggg >>>>> messageTIME_VERY_LONG_FORMAT
>>>>> >>>>> >>>>> >>>>> Is there any way to get fixed headers without explicitly setting >>>>> the width of the table cells? >> >>>> >>>> white-space: nowrap >> >>> >>> this doesn't seem to fix my >>> problem - i.e. the column headers are not aligned with the data: >> >> I don't know what you mean. I pasted your page into my browser, and there >> are 2 rows with 3 columns each, lined up as I'd expect. What do you expect >> to happen that doesn't? > > Please look at this fiddle: > > http://jsfiddle.net/34Fd5/ From spartha80 at gmail.com Wed Jul 2 05:07:37 2014 From: spartha80 at gmail.com (S Partha) Date: Wed, 2 Jul 2014 17:37:37 +0530 Subject: [html5] Question on label as a part of interactive content Message-ID: HI all, As per the spec http://dev.w3.org/html5/spec-preview/content-models.html#interactive-content, label element is marked as interactive without any exceptions. Label elements are still considered interactive, even if they don't have any labeled control. Is there a specific reason to treat labels this way? Regards Sudarshan -------------- next part -------------- An HTML attachment was scrubbed... URL: From jukka.k.korpela at kolumbus.fi Wed Jul 2 05:28:54 2014 From: jukka.k.korpela at kolumbus.fi (Jukka K. Korpela) Date: Wed, 02 Jul 2014 15:28:54 +0300 Subject: [html5] Question on label as a part of interactive content In-Reply-To: References: Message-ID: <53B3FB06.5060203@kolumbus.fi> 2014-07-02 15:07, S Partha wrote: > As per the spec > http://dev.w3.org/html5/spec-preview/content-models.html#interactive-content, > label element is marked as interactive without any exceptions. Label > elements are still considered interactive, even if they don't have any > labeled control. Is there a specific reason to treat labels this way? The