Created
June 26, 2019 17:48
-
-
Save qawemlilo/506d555f4cb99d86b1baf631d9003b0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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