<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title>CSS christmas tree</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
div{
width:200px;
height:300px;
background:gray;
}
#toptree{
width:0px;
height:0px;
border-top:0px solid blue;
border-right:100px solid transparent;
border-bottom:100px solid green;
border-left:100px solid transparent;}
#secondtree{
width:0px;
height:0px;
border-top:0px;
border-right:80px solid transparent;
border-bottom:80px solid green;
border-left:80px solid transparent;
margin-left:20px;}
#footer{
width:20px;
height:100px;
background:black;
margin-left:90px;}
</style>
</head>
<body>
<div>
<div id="toptree"></div>
<div id="secondtree"></div>
<div id="footer"></div>
</div>
</body>
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title>CSS christmas tree</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
div{
width:200px;
height:300px;
background:gray;
}
#toptree{
width:0px;
height:0px;
border-top:0px solid blue;
border-right:100px solid transparent;
border-bottom:100px solid green;
border-left:100px solid transparent;}
#secondtree{
width:0px;
height:0px;
border-top:0px;
border-right:80px solid transparent;
border-bottom:80px solid green;
border-left:80px solid transparent;
margin-left:20px;}
#footer{
width:20px;
height:100px;
background:black;
margin-left:90px;}
</style>
</head>
<body>
<div>
<div id="toptree"></div>
<div id="secondtree"></div>
<div id="footer"></div>
</div>
</body>
</html>