Hi,
I was messing with drawing shapes in CSS3 and I was trying to draw something that looked like my avatar, the penguin.
I came up with this:
<html>
<head>
<title>The desperate penguin in CSS3</title>
<style>
.circle {
background-color: #000;
height: 100px;
-moz-border-radius:75px;
-webkit-border-radius: 75px;
border-radius: 75px;
width: 100px;
display:block;
}
.half_circle {
background-color:#efefef;
height: 50px;
-moz-border-radius:75px 75px 0 0 ;
-webkit-border-radius: 75px 75px 0 0 ;
border-radius: 75px 75px 0 0 ;
border-color:#000;
width: 100px;
display:block;
}
.triangle {
border-color: #ffdd00 transparent transparent transparent ;
border-style:solid;
border-width:40px;
width:0;
height:0;
}
.triangleB {
border-color: #000 transparent transparent transparent ;
border-style:solid;
border-width:35px;
width:0;
height:0;
}
.triangle2 {
border-color: transparent #000 transparent transparent ;
border-style:solid;
border-width:40px;
width:0;
height:0;
}
.triangle3 {
border-color: transparent transparent transparent #000;
border-style:solid;
border-width:40px;
width:0;
height:0;
}
-moz-border-radius:75px;
-webkit-border-radius: 75px;
border-radius: 75px;
</style>
</head>
<body>
<div class="circle"></div>
<div class="half_circle"></div>
<div class="triangle"></div>
<div class="triangleB"></div>
<div class="triangle2"></div>
<div class="triangle3"></div>
</body>
</html>
But, I can not seem to figure out how to position the shapes on top of each other like this:http://dl.dropbox.com/u/270523/css3Penguin.png
I know what my sketch above is far from looking like my avatar, but it is a start and I think that if you can help me put the shapes in the code above in those positions or so then I can fine tune the shapes and make it look nice!
I am assuming this is possible because I have seen some very comples things drawn in CSS3.
I would appreciate any help. Please reply if you have any Questions, Comments, Concerns, or Solutions
Thanks in Advance,
Team 1504