HTML CSS examples for CSS Property:opacity
Setting opacity to all <td> except a child in the last <td>
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> tr td, tr:last-child td a { opacity:.6 } tr:last-child td, tr:last-child td a.a3 { opacity:2 } </style> <!-- ww w . j ava 2s . co m--> </head> <body> <table> <tbody id="items"> <tr> <td>Lorem </td> </tr> <tr> <td>Lorem </td> </tr> <tr> <td>Lorem </td> </tr> <tr> <td>Lorem </td> </tr> <tr> <td>Lorem </td> </tr> <tr> <td> <a>L</a> <a>L</a> <a class="a3">L</a> </td> </tr> </tbody> </table> </body> </html>