Cell border under one row only?

M

Martin

Is it possible to have a cell border at the bottom of just one,
specific row in a table?

I have a table that I'm displaying with a rules="cols" attribute. But
at a certain row, I'd like to show a horizontal line of some kind.
Showing the cell border on the bottom of that one row would be just
what I'm looking for.

Possible?
 
D

David Dorward

Martin said:
Is it possible to have a cell border at the bottom of just one,
specific row in a table?

Yes, the easiest way would probably be to set a class on the tr element,
then use a descent selector to specify all the td elements inside it (and
the nuse the border-bottom property).

However, a better solution is likely to involve using <thead> or <tfoot>
depending on exactly when you want a border under that specific row.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top