I need to create the above visual using only css and only one div having 300px height and width. I tried gradient but could not get anything same. Anyone can help pleas
You can try having a few divs and then have it encapsulated inside one div. Check out my code on JSfiddle.
.main {
width: 300px;
height: 300px;
}
.first {
width: 300px;
height: 150px;
}
.blue {
width:150px;
height: 150px;
position: relative;
float: left;
background-color: blue;
}
.yellow {
width:150px;
height: 150px;
position: relative;
float: right;
background-color: yellow;
}
.green {
width: 300px;
height: 150px;
background-color: green;
border-radius: 0 0 500px 500px;
}
.red {
position: relative;
height: 150px;
top: -400px;
border-left: 150px solid transparent;
border-right: 150px solid transparent;
border-bottom: 150px solid red;
}