Web coders: Help with HTML table

Home Archive Serious Business Web coders: Help with HTML table
T

teamcoco

Member

41 posts
Feb 28, 2013 8:12 PM
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

Feb 28, 2013 8:12pm
Devils Advocate's avatar

Devils Advocate

Brudda o da bomber

4,539 posts
Feb 28, 2013 8:30 PM
Sorry.... No speak a da interwebz
Feb 28, 2013 8:30pm
hasbeen's avatar

hasbeen

Excuse me, Flo?

6,504 posts
Feb 28, 2013 8:31 PM
I ain't got time for this.
Feb 28, 2013 8:31pm
Belly35's avatar

Belly35

Elderly Intellectual

9,716 posts
Feb 28, 2013 9:07 PM
Check your spelling :D
Feb 28, 2013 9:07pm
M

MontyBrunswick

Feb 28, 2013 9:30 PM
i can't type it out on here since HTML code actually renders properly.
Feb 28, 2013 9:30pm
believer's avatar

believer

Senior Member

8,153 posts
Mar 1, 2013 2:43 AM
Belly35;1398130 wrote:Check your spelling MOFO :D
fixed
Mar 1, 2013 2:43am
thePITman's avatar

thePITman

Senior Member

3,867 posts
Mar 1, 2013 8:18 AM
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.
Mar 1, 2013 8:18am
justincredible's avatar

justincredible

Nick Mangold

32,056 posts
Mar 1, 2013 8:36 AM
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.
Mar 1, 2013 8:36am
Belly35's avatar

Belly35

Elderly Intellectual

9,716 posts
Mar 1, 2013 11:18 AM
justincredible;1398320 wrote:This is the answer.
this
Mar 1, 2013 11:18am
thePITman's avatar

thePITman

Senior Member

3,867 posts
Mar 5, 2013 9:22 AM
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?
Mar 5, 2013 9:22am