I want to hide the border for a specific rows of a table.How to do it?
Any Idea?
Sample code is Highly Appreciated.
I want to hide the border for a specific rows of a table.How to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the CSS property border on the
<td>s following the<tr>s you do not want to have the border.In my example I made a class
noBorderthat I gave to one<tr>. Then I use a simple selectortr.noBorder tdto make the border go away for all the<td>s that are inside of<tr>s with thenoBorderclass by assigningborder: 0.Note that you do not need to provide the unit (i.e.
px) if you set something to0as it does not matter anyway. Zero is just zero.Here’s the output as an image: