Skip to content

Instantly share code, notes, and snippets.

@qawemlilo
Created June 26, 2019 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qawemlilo/506d555f4cb99d86b1baf631d9003b0b to your computer and use it in GitHub Desktop.
Save qawemlilo/506d555f4cb99d86b1baf631d9003b0b to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<style>
.square {
border: 1px solid black;
width: 200px;
height: 200px;
margin-bottom: 10px;
}
.rectangle {
border: 1px solid black;
width: 500px;
height: 200px;
border-top-right-radius: 90%;
border-top-left-radius: 30%;
}
.small-rectangle {
background: #000000;
opacity: 0.8;
width: 120px;
height: 60px;
margin: 50px 0px 20px 50px;
border-top-right-radius: 50%;
border-top-left-radius: 50%;
}
.circle {
border: 10px solid black;
width: 80px;
height: 80px;
border-radius: 50%;
margin-top: -50px;
margin-left: 30px;
background: #DDD;
}
.float {
float: left;
}
.space {
margin-left: 200px;
}
.clear {
clear:left;
}
</style>
</head>
<body>
<div class="rectangle">
<div class="small-rectangle float"></div>
<div class="small-rectangle float" style="margin-left: 60px;"></div>
<hr class="clear">
</div>
<div>
<div class="circle float"></div>
<div class="circle float space"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment