We would like to know how to highlight text with box with shadow using CSS3 box-shadow.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {<!-- ww w.j a v a2 s . c o m-->
background: #fcf8b3;
border: 1px solid #aaa;
margin: 10px;
padding: 10px;
width: 330px;
-webkit-box-shadow: 2px 2px 3px #888;
-moz-box-shadow: 2px 2px 3px #888;
box-shadow: 2px 2px 3px #888;
}
</style>
</head>
<body>
<div>Box shadows are pretty cool.</div>
</body>
</html>
The code above is rendered as follows: