Does anyone know how to style tr as we like?
I've used border-collapse on table, after that tr's can display 1px solid border I give them.
However, when I've tried -moz-border-radius
, it doesn't work. Even simple margin doesn't work.
css
Does anyone know how to style tr as we like?
I've used border-collapse on table, after that tr's can display 1px solid border I give them.
However, when I've tried -moz-border-radius
, it doesn't work. Even simple margin doesn't work.
Best Answer
You can only apply border-radius to td, not tr or table. I've gotten around this for rounded corner tables by using these styles:
Be sure to provide all the vendor prefixes. Here's an example of it in action.