Lab 9
html code:
<!DOCTYPE html> <head> <title>Box-Shadow</title> <link rel = "stylesheet" href = "lab9.css" type = "text/css" /> </head> <body> <div class = "box"> <div class = "inner-box"></div> </div> </body>
CSS code:
/* filename: lab9.css */
.box { /* Part 1 */ width: 400px; height: 305px; margin: 50px auto; position: relative; background-color: #FFFFFF; border: 5px solid #DDDDDD; }
.inner-box { /* Part 2 */ width: 220px; height: 180px; position: absolute; right: 0px; bottom: 0px; background-color: #002EFF; box-shadow: 5px 5px 3px #888888; /* Part 3 */ -webkit-transform: skew(0deg, 8deg); /* Chrome, Safari, Opera */ transform: skew(0deg, 8deg); /* Part 4 */ z-index:-1; /* Part 5 */ background-color: black; }








