How to create table with uneven columns [modified] Solved!
-
I was at a job interview the other day and was asked how I would define a html table with the following attributes. table needs to be 300px by 300px Three rows - each 100px tall one column in the first row taking up the entire row two column's in the second row, each 150px three column's in the third row, each 100px I said "uhhhhhhh", do I add another one row table to each column and then split the "inner" tables as required? Well, that was not the answer they were looking for. How would I do this? I thought the interview was going to be on SQL server and C# but this question came out of left field so to speak and I would like to know a way to accomplish this. Thanks
modified on Wednesday, March 3, 2010 5:30 PM
-
I was at a job interview the other day and was asked how I would define a html table with the following attributes. table needs to be 300px by 300px Three rows - each 100px tall one column in the first row taking up the entire row two column's in the second row, each 150px three column's in the third row, each 100px I said "uhhhhhhh", do I add another one row table to each column and then split the "inner" tables as required? Well, that was not the answer they were looking for. How would I do this? I thought the interview was going to be on SQL server and C# but this question came out of left field so to speak and I would like to know a way to accomplish this. Thanks
modified on Wednesday, March 3, 2010 5:30 PM
COLSPAN and ROWSPAN
Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
-
I was at a job interview the other day and was asked how I would define a html table with the following attributes. table needs to be 300px by 300px Three rows - each 100px tall one column in the first row taking up the entire row two column's in the second row, each 150px three column's in the third row, each 100px I said "uhhhhhhh", do I add another one row table to each column and then split the "inner" tables as required? Well, that was not the answer they were looking for. How would I do this? I thought the interview was going to be on SQL server and C# but this question came out of left field so to speak and I would like to know a way to accomplish this. Thanks
modified on Wednesday, March 3, 2010 5:30 PM
-
Your table would actually be six cells wide with each cell 50px; colspan=6 colspan=3, colspan=3 colspan=2, colspan=2, colspan=2
-
I was at a job interview the other day and was asked how I would define a html table with the following attributes. table needs to be 300px by 300px Three rows - each 100px tall one column in the first row taking up the entire row two column's in the second row, each 150px three column's in the third row, each 100px I said "uhhhhhhh", do I add another one row table to each column and then split the "inner" tables as required? Well, that was not the answer they were looking for. How would I do this? I thought the interview was going to be on SQL server and C# but this question came out of left field so to speak and I would like to know a way to accomplish this. Thanks
modified on Wednesday, March 3, 2010 5:30 PM