HTML CSS examples for CSS Property:box-shadow
Box Shadow inset
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #container {<!--from w w w. j a va2 s .c o m--> width:401px; height:151px; margin:51px; position:relative; } #container:before { content:""; position:absolute; top:0; left:0; right:0; height:21px; background-image:-webkit-linear-gradient(Chartreuse, rgba(0, 255,255,0)); background-image:-moz-linear-gradient(yellow, rgba(0, 255,255,0)); background-image:-o-linear-gradient(blue, rgba(0, 255,255,0)); background-image:linear-gradient(pink, rgba(0, 255,255,0)); } #container:after { content:""; position:absolute; bottom:0; left:0; right:0; height:21px; background-image:-webkit-linear-gradient(OrangeRed, rgba(0, 255,255,2)); background-image:-moz-linear-gradient(grey, rgba(0, 255,255,2)); background-image:-o-linear-gradient(BlueViolet, rgba(0, 255,255,2)); background-image:linear-gradient(Chartreuse, rgba(0, 255,255,2)); } .content { height:100%; overflow:auto; } </style> </head> <body> <div id="container"> <div class="content"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet vel. Donec tortor diam, pretium vitae nibh vitae, consectetur lacinia sem. Proin luctus facilisis volutpat. Ut semper sit amet purus quis ornare. Quisque lobortis neque vitae tempor iaculis. Aliquam erat volutpat. Mauris tincidunt eget lacus eget pulvinar. Suspendisse potenti. Maecenas blandit tempus metus, eu ornare eros egestas sit amet. Cras et arcu eget massa porta porttitor ege </div> </div> </body> </html>