<Head>
<Meta http-equiv = "content-type" content = "text/html; charset = gb2312"/>
<Title> css div border shadow </title>
<Style type = "text/css">
Body {padding: 200px ;}
Div {border-width: 1px; border-style: solid; padding: 1px ;}
. A {background-color: # f3f3f3; border-color: # fbfbfb ;}
. B {background-color: # d8d8d8; border-color: # e8e8e8 ;}
. C {background-color: # fff; border-color: # bbb; height: 100px; color: # ff0000 ;}
</Style>
</Head>
<Body>
<Div class = "a">
<Div class = "B">
<Div class = "c"> The border is shadow </div>
</Div>
</Div>
</Body>
</Html>
Complex exploitation of image background
<! Doctype html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.111cn.net/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<Html xmlns = "http://www.111cn.net/1999/xhtml">
<Head>
<Title> css border shadow </title>
<Style>
. Drops tutorial hadow2 {
Float: left;
Clear: left;
Background: url (http://www.111cn.net/img/20090623190955357.png) no-repeat bottom right! Important;
Background: url (http://www.111cn.net/img/20090623190955450.gif) no-repeat bottom right;
Margin: 10px 0 10px 10px! Important;
Margin: 10px 0 10px 5px;
Width: 500px;
Padding: 0px;
}
. Innerbox {
Position: relative;
Bottom: 6px;
Right: 6px;
Border: 1px solid #999999;
Padding: 4px;
Margin: 0px 0px 0px 0px;
}
. Innerbox {
/* Ie5 hack www.aimeige.com.cn */
Margin: 0px 0px-3px 0px;
Margin: 0px 0px 0px 0px;
}
. Innerbox p {
Font-size: 14px;
Margin: 3px;
}
</Style>
</Head>
<Body>
<Div class = "dropshadow2"> <div class = "innerbox"> </Body>
</Html>