81
Views
14
Comments
Solved
Need spacing for rows in table.

I have applied a css  .table {    border-spacing: 0px 10px; } which added a spacing but also a spacing for table top which you can see in the image below and tried remove the space on the top the table but failed.

please remove the space on the header top.

Please help me on this.

2025-08-20 12-58-03
ADITI CHATURVEDI
Solution


Hi

For Table you can implement border spacing as per per your requirement and don't add border to the whole table add it to each td and th and first and last child classes is implemented for the border radius on the each row of the table.

 here is the CSS which you can try :-

.table {

    border-spacing: 0px 8px;    

    border: 0px;

}


.table .table-row td:first-child {

    border-left: 1px solid rgba(1, 46, 93, 0.14);

    border-top-left-radius: 10px;

    border-bottom-left-radius: 10px;

}


.table-row td:last-child {

    border-right: 1px solid rgba(1, 46, 93, 0.14);

    border-top-right-radius: 10px;

    border-bottom-right-radius: 10px;

}


.table-row td {

    border-top: 1px solid rgba(1, 46, 93, 0.14);

    color: var(--color-primary);

    border-bottom: 1px solid rgba(1, 46, 93, 0.14);

}


.table-header th {

    border-top: 1px solid rgba(1, 46, 93, 0.14);

    color: var(--color-primary);

    border-bottom: 1px solid rgba(1, 46, 93, 0.14);

}


Thank You

2024-03-22 09-17-23
Chandra Vikas Sharma
UserImage.jpg
Nani

Please don't post random answers 

2021-01-19 14-07-32
Tom Zhao

Hi nani 

You can use css selector to limited scope. 

e.g.

.table td{    border-spacing: 0px 10px; } 

Regards,

2025-07-28 06-45-20
Rupesh Patil

Hello @nani 

I tried but not achieved I think its not possible remove above space you can try this way its fine

.table {

    border-spacing: 0px 10px;

    border:0px;

}

.table-header th,.table-row td{

        border: 1px solid #dee2e6;

}

Thanks

UserImage.jpg
Nani

I think its not possible.

2025-07-28 06-45-20
Rupesh Patil

Hello @nani 

Yes so you can use above table design if possible

Thanks

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi nani,

I tried in my personal it is working fine, if it is possible can you please share OML 

i will check in that with CSS property.


Regards,

Rajat

UserImage.jpg
Nani

Okay, if notice there is bottom space too.
Remove both top and bottom space of the table.

Thank you.

TestingDOH.oml
UserImage.jpg
Nani

@Rajat Agrawal can you share you solution.

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi,

Here i attached your OML please check.


Regards,

Rajat

TestingDOH.oml
2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi @nani,

Have to checked attached OML

Please let me know it is working or not thanks

2024-06-01 07-14-16
Vaishali Thakur

Hey, @nani if you want this type of table on your screen -


then you have to write CSS on the properties tab section there will be attributes select style and "add there this CSS (border-spacing:0px;)" also shown in the picture.

2025-08-20 12-58-03
ADITI CHATURVEDI
Solution


Hi

For Table you can implement border spacing as per per your requirement and don't add border to the whole table add it to each td and th and first and last child classes is implemented for the border radius on the each row of the table.

 here is the CSS which you can try :-

.table {

    border-spacing: 0px 8px;    

    border: 0px;

}


.table .table-row td:first-child {

    border-left: 1px solid rgba(1, 46, 93, 0.14);

    border-top-left-radius: 10px;

    border-bottom-left-radius: 10px;

}


.table-row td:last-child {

    border-right: 1px solid rgba(1, 46, 93, 0.14);

    border-top-right-radius: 10px;

    border-bottom-right-radius: 10px;

}


.table-row td {

    border-top: 1px solid rgba(1, 46, 93, 0.14);

    color: var(--color-primary);

    border-bottom: 1px solid rgba(1, 46, 93, 0.14);

}


.table-header th {

    border-top: 1px solid rgba(1, 46, 93, 0.14);

    color: var(--color-primary);

    border-bottom: 1px solid rgba(1, 46, 93, 0.14);

}


Thank You

2024-10-18 06-49-51
Ritik Kulshrestha

Hi @Nani

I have a very simple solution for that. You can just apply a single CSS rule like this:

.table:nth-child(1) {  border-spacing: 0px 0px;}

I think this should work.

Thank you!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.