Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to create table with uneven columns [modified] Solved!

How to create table with uneven columns [modified] Solved!

Scheduled Pinned Locked Moved ASP.NET
questioncareercsharphtmldatabase
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    josephu
    wrote on last edited by
    #1

    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

    E T C 3 Replies Last reply
    0
    • J josephu

      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

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • J josephu

        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

        T Offline
        T Offline
        T M Gray
        wrote on last edited by
        #3

        Your table would actually be six cells wide with each cell 50px; colspan=6 colspan=3, colspan=3 colspan=2, colspan=2, colspan=2

        J 1 Reply Last reply
        0
        • T T M Gray

          Your table would actually be six cells wide with each cell 50px; colspan=6 colspan=3, colspan=3 colspan=2, colspan=2, colspan=2

          J Offline
          J Offline
          josephu
          wrote on last edited by
          #4

          Thanks for the tip, it actually works! If you ever need a SQL server question answered give me a holler :) Code snip from VS2005, I added borders so I could "see" the cells.

          -- Modified Wednesday, March 3, 2010 8:58 PM

          1 Reply Last reply
          0
          • J josephu

            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

            C Offline
            C Offline
            chengclq
            wrote on last edited by
            #5

            so,i haved same promblem,thank you .

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups