In the design I'm currently working on, there is a requirement for a border around a table row. Due to certain complications, using the border property directly is not an option. In trying to find a solution, I have experimented with two different approaches, both of which involve using the pseudo-element :after.
One approach involved using
tr:after
. While this method worked in all browsers except for IE8 and above, it failed to render the specified styles undertr:after
in Internet Explorer at all.The second approach used
td:after
. Although this successfully displayed the border in IE8 and above, IE did not properly render the border around the full height of the td as instructed by the CSS.
If you would like to take a closer look and offer any advice or solutions, please visit http://jsfiddle.net/kxmhW/2/. The first table in the link demonstrates the use of tr:after while the second table employs td:after
.
Your input is greatly appreciated. Thank you.