Web coders: Help with HTML table

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

teamcoco

Member

41 posts
Mar 1, 2013 1:12 AM
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
Mar 1, 2013 1:30 AM
Sorry.... No speak a da interwebz
Feb 28, 2013 8:30pm
hasbeen's avatar

hasbeen

Excuse me, Flo?

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

Belly35

Elderly Intellectual

9,716 posts
Mar 1, 2013 2:07 AM
Check your spelling :D
Feb 28, 2013 9:07pm
M

MontyBrunswick

Mar 1, 2013 2:30 AM
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 7: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 1:18 PM
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 1:36 PM
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 4:18 PM
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 2:22 PM
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