Created
January 23, 2012 17:32
-
-
Save tpryan/1664396 to your computer and use it in GitHub Desktop.
Venn - HTML
This file contains hidden or 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
#venn div{ | |
height: 360px; | |
width: 360px; | |
border-radius:180px; | |
-khtml-border-radius:180px; | |
-moz-border-radius:180px; | |
-webkit-border-radius:180px; | |
border: 1px solid #000; | |
display: table; | |
float: left; | |
opacity: .6; | |
} |
This file contains hidden or 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
#venn div:nth-child(1){ | |
background-color: #FF0000; | |
color: #FFF; | |
padding-right: 60px; | |
} | |
#venn div:nth-child(2){ | |
background-color: #0000FF; | |
color: #FFF; | |
margin-left: -60px; | |
padding-left: 60px; | |
} |
This file contains hidden or 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
<div id="venn"> | |
<div><p>People Who like Venn Diagrams</p></div> | |
<div><p>People who read my blog articles</p></div> | |
<div id="overlap"><p>Just me.</p></div> | |
</div> |
This file contains hidden or 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
#venn #overlap{ | |
border: 0; | |
height: 30px; | |
width: 30px; | |
left: -350px; | |
top: 150px; | |
color: #ccc; | |
position: relative; | |
text-align: center; | |
z-index: 10; | |
opacity: 1; | |
} |
This file contains hidden or 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>Venn Example</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body{ | |
font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, | |
"Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, | |
"DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", | |
Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-size: 24px; | |
} | |
#venn div{ | |
height: 360px; | |
width: 360px; | |
border-radius:180px; | |
-khtml-border-radius:180px; | |
-moz-border-radius:180px; | |
-webkit-border-radius:180px; | |
border: 1px solid #000; | |
display: table; | |
float: left; | |
opacity: .6; | |
} | |
#venn div p { | |
display: table-cell; | |
text-align: center; | |
vertical-align: middle; | |
opacity: 1; | |
} | |
#venn div:nth-child(1){ | |
background-color: #FF0000; | |
color: #FFF; | |
padding-right: 60px; | |
} | |
#venn div:nth-child(2){ | |
background-color: #0000FF; | |
color: #FFF; | |
margin-left: -60px; | |
padding-left: 60px; | |
} | |
#venn #overlap{ | |
border: 0; | |
height: 30px; | |
width: 30px; | |
left: -350px; | |
top: 150px; | |
color: #ccc; | |
position: relative; | |
text-align: center; | |
z-index: 10; | |
opacity: 1; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="venn"> | |
<div><p>People Who like Venn Diagrams</p></div> | |
<div><p>People who read my blog articles</p></div> | |
<div id="overlap"><p>Just me.</p></div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment