<html>
<head>
<style>
.a {
border-top: 40px solid blue;
border-bottom: 20px solid green;
width: 200px;
}
</style>
</head>
<body>
<div class="a"></div>
</body> </html>