<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>the code you are complaining about is NOT MINE ...I have no html in any of the html i sent<br>Larry that contains "aligh"<br>(the AZ sharks currently sharking your line need to have their wireshark toys taken away)<br><br>My solution to produce dynamically sized columns is to implement a framework which reads and understands Database Columns from a Database and then resize the UI accordingly (such as Struts Jquery Grid control). If we implement Jquery grid control the WIDTH of the GRID COLUMNS will ALIGN EXACTLY to the SIZE OF THE COLUMNS READ from the database...Here is an example of what I'm referring to:<br>http://struts.jgeppert.com/struts2-jquery-grid-showcase/index.action<br>I have implemented about 10 of these to date<br><br>In the meanwhile Brian could you help Larry with a dynamic width column example in html?<br>Martin<br><br><br><div>> Date: Fri, 4 Jul 2014 14:14:06 -0400<br>> From: larry.martell@gmail.com<br>> To: webmaster@tsmchughs.com<br>> CC: help@lists.whatwg.org<br>> Subject: Re: [html5] table with fixed headers<br>> <br>> On Thu, Jul 3, 2014 at 4:25 PM, Brian Tremblay <webmaster@tsmchughs.com> wrote:<br>> > On 7/3/14, 7:34 AM, Larry Martell wrote:<br>> ><br>> >> On Wed, Jul 2, 2014 at 5:54 PM, Brian Tremblay wrote:<br>> >>><br>> >>> On 7/1/14, 9:43 AM, Larry Martell wrote:<br>> >>>><br>> >>>><br>> >>>> On Tue, Jul 1, 2014 at 12:29 PM, Brian Tremblay wrote:<br>> >>>>><br>> >>>>><br>> >>>>> On 7/1/14, 9:19 AM, Larry Martell wrote:<br>> ><br>> ><br>> >>> [snip html table]<br>> ><br>> ><br>> >>>>>> the column headers are not aligned with the data:<br>> >>>>><br>> >>>>><br>> >>>>> I don't know what you mean. I pasted your page into my<br>> >>>>> browser, and there are 2 rows with 3 columns each, lined up as<br>> >>>>> I'd expect. What do you expect to happen that doesn't?<br>> >>>><br>> >>>><br>> >>>> Please look at this fiddle:<br>> >>>><br>> >>>> http://jsfiddle.net/34Fd5/<br>> >>><br>> >>><br>> >>><br>> >>> You need to explain what you think should happen that doesn't.<br>> >><br>> >><br>> >> I have said what I want to happen: I want a table with fixed headers<br>> >> (i.e. headers that do not scroll off the screen when the table is<br>> >> scrolled) and I want the table cells to auto size as a table will<br>> >> normally do.<br>> ><br>> ><br>> > You also said the columns weren't lining up with the data:<br>> <br>> Yes, the headers were not lining up with the data, but that is because<br>> the table is not auto sizing,<br>> ><br>> ><br>> > On 7/1/14, 9:19 AM, Larry Martell wrote:<br>> >><br>> >> Thanks very much for the reply Martin. But this doesn't seem to fix<br>> >> my problem - i.e. the column headers are not aligned with the data<br>> ><br>> ><br>> > So I was trying to answer that part of your question.<br>> ><br>> >>> BTW, your html has more than 30 errors, including this one:<br>> >>><br>> >>> "Warning: A table row was 3 columns wide, which is less than the<br>> >>><br>> >>> column count established by the first row (4)."<br>> >>><br>> >>> Correct that, and the columns may line up the way you'd expect.<br>> >><br>> >><br>> >> I posted a small example showing the problem. The 'errors' have<br>> >> nothing to do with the issue.<br>> ><br>> ><br>> > First: I'm not sure why you put quote marks around "errors". It's almost<br>> > as though you think they're imaginary. They're not. You misspelled<br>> > "align" as "aligh" 15 times. That's not the only error.<br>> <br>> I did not notice that, sorry.<br>> <br>> > Second: how do you know that removing the errors won't fix the problem?<br>> <br>> Because I have it without errors in my app and the issue is there. The<br>> errors were introduced when I was cut and pasting into jsfiddle and<br>> then trying different things there.<br>> <br>> ><br>> ><br>> >>> And please correct the other errors while you're at it, so that<br>> >>> debugging is easier and we can provide better help.<br>> ><br>> ><br>> > That's the key. When I post your code in my editor, I first have to<br>> > correct all your errors before I can start troubleshooting. If you did<br>> > that, perhaps the data would line up, and we could focus on the problem<br>> > of getting fixed headers and footers on your table.<br>> ><br>> ><br>> >> But I have found out that by setting display:block on the tbody, I<br>> >> essentially remove the “tableness”. So I am SOL.<br>> ><br>> ><br>> > I'd think some combination of css positioning would do the job. But I'm not<br>> > going to spend time on the css if the underlying html is broken. Too many<br>> > blind alleys.<br>> <br>> OK, thanks for taking the time to look at it anyway.<br>> _______________________________________________<br>> Help mailing list<br>> Help@lists.whatwg.org<br>> http://lists.whatwg.org/listinfo.cgi/help-whatwg.org<br></div> </div></body>
</html>