HTML Table - Border around specific group of cells in a table

I have a border-less table with 12 columns and 5 rows.

I need the block of cells mentioned below to be surrounded  by border (NOT THE INDIVIDUAL CELL). See attachment for illustration)
cell 1, 2, 6, 7, 11, 12
cell 21,22
cell 41, 42
cell 51, 52,56, 57
cell 4, 5, 9,10, 14,15, 19, 20, 24, 25
cell 54, 55, 59, 60

Any help is greatly appreciated

Errol FarroAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
What is the application  - will the same cells always require the border or will it change?
Errol FarroAuthor Commented:
The application is COldfusion. However, Coldfusion interpret HTML without a problem.

The same cells will require the border
Julian HansenCommented:
No I meant how the page will be used - what will it be used for.

If it is the same cells can you not just create 4 classes and assign those to the respective cells
.border-top {
   border-top: 1px solid black;
.border-left {
  border-left: 1px solid black;
.border-bottom {
  border-bottom: 1px solid black;
.border-right {
  border-right: 1px solid black;

Open in new window

Sample Table Code
  <table style="width:50%">
          <td class="border-top border-left">1</td>
          <td class="border-top border-right">2</td>
          <td class="border-top border-left">4</td>
          <td class="border-top border-right">5</td>

Open in new window

Sample here

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.