html-table

How do I specify in HTML or CSS the absolute minimum width of a table cell.

Summary What's the best way to ensure a table cell cannot be less than a certain minimum width. Example I want to ensure that all cells in a table are at least 100px wide regards of the width of the tables container. If there is more available space the table cells should fill that space. Browser compatibility I possible I would li...

Using CSS, how can I split a string (e.g. a long URL) in a table cell?

Here's the situation: I'm trying my hand at some MySpace page customisations. If you've ever tried [stackoverflow], I'm sure you understand how frustrating it can be. Basically it can be all customised via CSS, within a certain set of rules (e.g. the '#' character is not allowed...how useful!). Have a look at this blog if you want more i...

What is the best way to remove a table row with jQuery?

What is the best method for removing a table row with jQuery? ...

jQuery add table row

What is the best method in jQuery to add an additional row to a table as the last row? ...

What is it about this Javascript code that causes it to correctly generate a table in IE?

What is it about this source code that causes it to actually generate a table in IE instead of just doing nothing. function generateATable() { tableContainer = document.getElementById("tableDiv"); var tableElement = document.createElement("table"); // Append the Table Element to the table // container. tableContaine...

CSS3's border-radius property and border-collapse:collapse don't mix. How can I use border-radius to create a collapsed table with rounded corners?

Edit - Original Title: Is there an alternative way to achieve border-collapse:collapse in CSS (in order to have a collapsed, rounded corner table)? Since it turns out that simply getting the table's borders to collapse does not solve the root problem, I have updated the title to better reflect the discussion. I am trying to make a tabl...

How do I build a HTML table from Glazed List?

Lat week I downloaded the Glazed List library into eclipse. I have been looking through the tutorials and it seems that everything is designed to run jTable or SWT. I am need a backing list(Map, table, whatever) for simple HTML tables that can be sortable. I have been doing this by rolling my own classes to create HTML tables from either...

Colums resize when using JQuery UI's toggle in IE

Example code: <html> <head> <script src="jquery-1.3.2.min.js" type="text/javascript"></script> <script src="jquery-ui-1.7.1.custom.min.js" type="text/javascript"></script> </head> <body> <table border="1" style="width:100%"> <tr> <th>1</th> <th>2</th> <th>3</th> ...

Will a table row be displayed if all its cells are empty?

I have an empty table row just for separation between rows. <tr> <td colspan="5"></td> </tr> It's rendered in IE, FF, Opera and Safari. The question is, whether I should put some content inside of it or it is okay to leave it as it is? Like: <tr> <td colspan="5">&nbsp;</td> </tr> ...

Table layout problem - Firefox versus Chrome and IE7

I'm trying to layout an HTML table (it's tabular data) and it is rendering differently in Firefox 3.5 and Chrome 2.0.172 (EDIT and IE7 - which renders the table like Chrome does). I have the table inside a div: <div id="listcontainer"> <table class="tasklist"> <colgroup> <col class="narrow" /> <col class="wide" /> ...

jQuery DOCTYPE CSS bug with IE 6 & 7 - Quirks Mode - SOLVED!!!

Ok strange behavior when it should work: The problem is if I don't declare a doctype the CSS works in IE 6 & 7 but if I declare the DOCTYPE it doesn't work. Why??? jQuery: $('tr:first-child').children().css({ 'width': settings.minWidth + 'px', 'height': settings.tableHeaderHeight + 'px', 'overflow': 'hidden', 'white-space'...

c# create thead and tbody

Can anyone tell me how to dynamically create thead tbody tags in my c# code? private void MakeTable() { Table tb = new Table(); TableRow tr = new TableRow(); TableCell td = new TableCell(); td.Text="hello world"; tr.Cells.Add(td); tb.Rows.Add(tr); } Thanks ...

Easiest way to turn a list into an HTML table in python?

lets say I have a list like so: ['one','two','three','four','five','six','seven','eight','nine'] and I want to experiment with turning this data into a HTML table of various dimensions: one two three four five six seven eight nine or one four seven two five eight three six nine or one two three...

How to get an Applet in a table-row to size dynamically

I need to insert an applet into a table-row and get that table-row's height to dynamically resize according to the browser's window size. If I put fixed values for width & height in the td-tag, it shows the applet fine, but I need to be able to resize this according to the client's size capabilities, so using fixed sizes is not the answe...

HTML specify print pages?

I am making a table of data that needs to printed out. I want the header to be at the top of each page. SO I am thinking the best way to do this is to repeat the header maybe every 30 columns or so, and break it into sections. But theres still no way to ensure that each section gets printed on its own page that I know of. Does anyone kno...

Is it possible to create a TH with TableRow.insertCell()?

I'm adding new rows to a table dinamically, with this code: tbody = document.getElementById('tbody'); tr = tbody.insertRow(-1); tr.id = 'last'; th = tr.insertCell(0); td = tr.insertCell(1); But what I actually got are two TD cells. I want a TH, as you can see. It says the tagName property isn't changeable. How can I do this? Will I ...

Handle multiple events on a HTML table row

I have an HTML table which has an onClick property on the row which navigates me to another page. On this table I want to add a button, or an anchor tag which should do something else; e.g delete the row of that table. By default, on clicking the button, it executes that JS function and then the Row JS function. How can I set it so that...

convert html pages to pdf

Im just imagining what the things I can do to make a pdf file out of my localhost files(.php). I tried using the online conversion tools but it didnt work because they're not on the web definitely. Can you recommend me of some ways on how I can achieve my goal of converting an html table into pdf and print it using the print function in ...

Some ideas on indicating the active cells (or passive cells) of an HTML table (by coloring or by bluring or other)

Hello all, I have an html table, which includes let's say 1 row and 5 cells (C1, C2, C3, C4, C5). (Cells have specific content) C1 - C2 - C3 - C4 - C5 Usage 1: C3 is used with C1 and C2 at the same time, Usage 2: C3 is used with C4 and C5 at the same time, When I am using "C1, C2, C3" then C4 and C5 is not used or When I am using "C3...

How do I convert this HTML-table layout solution to floating-div solution?

I often need to list items with various-sized images on the left and text on the right, like this: For 17 years, I have solved this with HTML tables, like this: <html> <style> * { margin: 0; padding: 0 } body { padding: 20px; } #content { width: 600px; padding: 20px; margin-left: auto; ...