<!doctype html>
<head>
<style>
.box { padding:3px; margin:3px }
.box div { height:40px; border:2px solid black; background-color:orange }
a { opacity:0.5 }
</style>
<body>

<div class="box"><a><div>This block should be partially transparent.</div></a></div>
