Created
August 10, 2016 01:04
-
-
Save theptrk/e79f504a52bab637309b860f08138d16 to your computer and use it in GitHub Desktop.
This is a circle in css
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> | |
<title>Circle</title> | |
<style type="text/css"> | |
.circle-container { | |
width: 150px; | |
height: 150px; | |
line-height: 150px; | |
text-align: center; | |
border: 2px solid #1da1ff; | |
border-radius: 150px; | |
overflow: hidden; | |
} | |
.circle-container span { | |
display: inline-block; | |
vertical-align: middle; | |
line-height: normal; | |
font-size: 16pt; | |
font-family: Helvetica; | |
} | |
</style> | |
</head> | |
<body> | |
<div class='circle-container'> | |
<span>This is a circle</span> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment