All Questions

665
votes
66answers
418136 views

Why not use tables for layout in HTML?

It seems to be the general opinion that tables should not be used for layout in HTML. Why? I have never (or rarely to be honest) seen good arguments for this. The usual answers are: It's good to ...
110
votes
17answers
292663 views

Table header to stay fixed at the top when user scrolls it out of view with jQuery

I am trying to design an HTML table where the header will stay at the top of the page when AND ONLY when the user scrolls it out of view. For example, the table may be 500 pixels down from the page, ...
59
votes
7answers
270333 views

Create table using Javascript

I have a JavaScript function which creates a table with 3 rows 2 cells. Could anybody tell me how I can create the table below using my function (i need to do this for my situation)? My HTML: <ta...
91
votes
14answers
251854 views

How can I export tables to excel from a webpage

How can I export tables to excel from a webpage. I want the export to contain all the formatting and colours.
29
votes
9answers
226678 views

Show values from a MySQL database table inside a HTML table on a webpage

I want to retrieve the values from a database table and show them in a html table in a page. I already searched for this but I couldn't find the answer, although this surely is something easy (this sh...
251
votes
12answers
523765 views

Add border-bottom to table row <tr>

I have a table of 3 by 3. I need a way to add a border for the bottom of every row tr and give it a specific color. First I tried the direct way, i.e.: <tr style="border-bottom:1pt solid black;"&...
27
votes
5answers
39168 views

How to invert (transpose) the rows and columns of an HTML table?

I want to transpose the rows and columns in an HTML table, i.e. Rows as Columns, Columns as Rows. In what way I can do it? Example : 1 4 7 2 5 8 3 6 9 as 1 2 3 4 5 6 7 8 9
92
votes
11answers
155083 views

MySQL - check if table exists without using "select from"

Is there a way to check if a table exists without selecting and checking values from it? That is, I know I can go SELECT testcol FROM testtable and check the count of fields returned, but it seems th...
61
votes
7answers
162861 views

How to insert row in HTML table body in javascript?

I have an HTML table with a header and a footer: <table id="myTable"> <thead> <tr> <th>My Header</th> </tr> </thead> ...
37
votes
2answers
188288 views

How to make Scrollable Table with fixed headers using CSS

I want to make header of my table fixed.Table is present inside the scrollable div.Please see my code here: http://jsfiddle.net/w7Mm8/114/ kindly suggest me the solution to this. Thanks My Code: ...

Previous Next