We would like to know how to create double border with different width using two divs.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#top {
width: 940px;
float: left;
border-bottom: 5px solid #222;
border-top: 5px solid #222;
padding-top: 1px;
margin-bottom: 20px;
padding-bottom: 1px;
}<!--from w w w . j a va 2s. co m-->
#hwrap {
width: 940px;
float: left;
border-bottom: 1px solid #222;
border-top: 1px solid #222;
padding-top: 20px;
margin-bottom: 0px;
padding-bottom: 14px;
}
</style>
</head>
<body>
<div id="top">
<div id="hwrap"></div>
</div>
</body>
</html>
The code above is rendered as follows: