2009-11-10 22:08:38 +03:00
|
|
|
<!doctype html>
|
|
|
|
<html><head>
|
|
|
|
<title>Border clipping</title>
|
|
|
|
<style>
|
|
|
|
.div1 { width: 50px; height: 50px;
|
|
|
|
border: 4px dotted black;
|
2010-09-09 19:21:47 +04:00
|
|
|
border-radius: 10px;
|
2009-11-10 22:08:38 +03:00
|
|
|
position: fixed;
|
|
|
|
background: red;
|
|
|
|
left: 50px;
|
|
|
|
top: 50px;
|
2010-06-09 05:44:33 +04:00
|
|
|
background-clip: padding-box;
|
2009-11-10 22:08:38 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.div2 { width: 50px; height: 50px;
|
|
|
|
border: 4px dotted black;
|
2010-09-09 19:21:47 +04:00
|
|
|
border-radius: 10px;
|
2009-11-10 22:08:38 +03:00
|
|
|
position: fixed;
|
|
|
|
background: red;
|
|
|
|
left: 50px;
|
|
|
|
top: 140px;
|
2010-06-09 05:44:33 +04:00
|
|
|
background-clip: border-box;
|
2009-11-10 22:08:38 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="div1"/>
|
|
|
|
<div class="div2"/>
|
|
|
|
</body></html>
|