Sujay
Sujay

Reputation: 95

How to add sub columns within a main column in angular

I am trying to add sub columns within a main column for my table created with Angular and Bootstrap but I am not able to add sub columns. I am trying to get a table like this. Any help would be appreciated. Thanks.

id Name Math Science 1 2 3 1 2 3

Some Table like the one in this image: Some Table like the one in this image

Upvotes: 1

Views: 594

Answers (1)

Hoa
Hoa

Reputation: 3207

First, this has nothing to do with Angular. You can create such a table with just HTML and CSS. Here a demo for you.

The main idea is to use colspan attribute.

Upvotes: 0

Related Questions