You need to apply the class so that the following code applies to only one div.
<style> div { -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.6); -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.6); box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.6); padding: 10px; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; background: #eeece0; } </style> <div> <p>qweqwe text qweqwe text qweqwe test1 qweqwe text qweqwe text qweqwe test2 qweqwe text qweqwe text qweqwe test3</p> </div>