Online Forum To Support Coders With Technical Assistance - Read Write Execute

how to add border in the table row?

Aman Agrawal
Aman Agrawal
Published on November 9, 2015 · 1 min read

Adding border in the table row i.e. tr seems to be easier task , but eventually it turn out to be trickier.

How ?? yes I have tried with this solution while I needed a border to my design for each row :-

tr{
border-bottom:2px solid #ccc;
}

But no, it is not the way. by writing above code you turn out to be with no border.For adding border to tr we need to define the tr tag in block type.

so here it is.:-

tr{
display:block;
border-bottom:2px solid #ccc;
}
Was this article helpful?
Aman Agrawal

Aman Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article Stick footer at bottom of webpage Next Article → Difference between Placeholder and Value