CSS-Schatten, Beispiel 04

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat.

Vel illum dolore eu feugiat nulla facilisis at vero et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.

Das Style-Sheet dieser Seite:

body {
   font-family: serif;
   background-color: #fff;
   color: #000;
   padding: 0;
   margin: 0;
   }

P {
   margin: 0.7em 1em;
   }

DIV.shadow {
   float: left;
   background-color: #777;
   padding: 1px;
   border: 1px solid #999;
   margin: 0px;
   }

DIV.shadow2 {
   float: left;
   background-color: #bbb;
   padding: 1px;
   border: 1px solid #ddd;
   margin: 0.7em 1em;
   }

DIV.shadow IMG {
   border: 0px solid #666;
   margin: 0;
   display:block;
   position: relative;
   top: -3px;
   left: -3px;
   }

Das HTML für Grafik und Schatten sieht so aus:

<div class="shadow2">
<div class="shadow">
<img src="../../graphics/shadowdemo1.jpg" width="225" height="169" alt="" />
</div></div>