CSS-Schatten, Beispiel 01

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;
   border: 1px solid transparent;
   margin: 0;
   }

P {
   margin: 0.7em 1em;
   }

DIV.shadow {
   float: left;
   background-color: #666;
   padding: 0;
   margin: 0.7em 1em;
   }

DIV.shadow IMG {
   }

#code {
   background-color: #eee;
   color: #333;
   padding: 1em;
   border-top: 1px dashed #ccc;
   margin: 0;
   }

Das HTML für Grafik und Schatten:

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