CSS Shapes
CSS Shapes
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.a
{
height:200px;
width:60%;
background-color:#0F0;
padding:50px 50px;
box-sizing:border-box;
}
.b {
width: 200px;
height: 100px;
transform: skew(-30deg);
background-color: blue;
float:left
}
.c {
width: 200px;
height: 100px;
transform: skew(-30deg);
background-color:red;
float:left
}
</style>
</head>
<body>
<div class="a">
<div class="b"></div>
<div class="c"></div>
</div>
</body>
</html>
Comments
Post a Comment