Archive

Web coders: Help with HTML table

  • teamcoco
    The attached pic is what I am trying to do: The left image is what I have now with the attached code.... the image on the right is what I want. I basically want "a and 1" etc to be in 2 different columns under their respective categories.


    Html code I have right now

  • Devils Advocate
    Sorry.... No speak a da interwebz
  • hasbeen
    I ain't got time for this.
  • Belly35
    Check your spelling :D
  • dlazz
    i can't type it out on here since HTML code actually renders properly.
  • believer
    Belly35;1398130 wrote:Check your spelling MOFO :D
    fixed
  • thePITman
    Change your "Heading" cell to colspan="4"
    Change "Cat 1" and "Cat 2" to colspan="2"
    Add 2 more columns in the rest of the rows, separating "a" and "1", etc.

    or, if you're worried about borders and such...

    Add another table inside cells "a1" and "d1" with 0 border, 2 columns each, and put the rest of the data for its respective 2 columns in there. Then remove the last 2 rows of the table.
  • justincredible
    thePITman;1398317 wrote:Change your "Heading" cell to colspan="4"
    Change "Cat 1" and "Cat 2" to colspan="2"
    Add 2 more columns in the rest of the rows, separating "a" and "1", etc.
    This is the answer.
  • Belly35
    justincredible;1398320 wrote:This is the answer.
    this
  • thePITman
    teamcoco;1398106 wrote:The attached pic is what I am trying to do: The left image is what I have now with the attached code.... the image on the right is what I want. I basically want "a and 1" etc to be in 2 different columns under their respective categories.
    thePITman;1398317 wrote:Change your "Heading" cell to colspan="4"
    Change "Cat 1" and "Cat 2" to colspan="2"
    Add 2 more columns in the rest of the rows, separating "a" and "1", etc.

    or, if you're worried about borders and such...

    Add another table inside cells "a1" and "d1" with 0 border, 2 columns each, and put the rest of the data for its respective 2 columns in there. Then remove the last 2 rows of the table.
    Did this give you what you wanted?