Últimos assuntos
[TUTORIAL] Xicara de Café flat em css puro
Página 1 de 1 • Compartilhe
Informações:
Autor: Wagner
Funcionalidade: Todas as versões
- Código:
<!DOCTYPE html>
<!--
// Cup of coffee with pure CSS
// Author: Wagner ( /waghcwb )
// This is just a simple example, this work is free and not commercial.
// Feel free to share or modify it, but just remember to maintain the credits (:
// Last update: 01/06/2014
-->
<html>
<head>
<title>Xícara de café flat em CSS puro</title>
<meta charset="utf-8">
<style type="text/css">
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
outline: none;
}
body{
font: 10px Lucida sans;
background: #98bfff;
color: #fff;
}
#cafe{
margin: 0 auto;
width: 20em;
height: 22em;
margin-left: -10em;
left: 50%;
top: 10%;
position: absolute;
}
#circulo{
border-radius: 50%;
width: 20em;
height: 20em;
background: #fff;
position: absolute;
}
#liquido{
background: #581b00;
border-radius: 50%;
width: 15em;
height: 15em;
position: absolute;
left: 50%;
top: 50%;
margin-left: -7.5em;
margin-top: -7.5em;
box-shadow: inset rgba(0,0,0,.2) -2em 2em 0;
}
#cabo{
background: #fff;
width: 3em;
height: 7em;
border-radius: 30%;
position: absolute;
bottom: 0;
right: 0;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
#wrap{
max-width: 800px;
margin: 30em auto 0;
}
</style>
</head>
<body>
<section id="wrap">
<section id="cafe">
<div id="cabo"></div>
<div id="circulo">
<div id="liquido"></div>
</div>
</section>
<section id="tutorial">
<h2>Xícara de café flat em CSS</h2>
</section>
</section>
</body>
</html>
Resultado:
Tópicos semelhantes
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
Ter Jan 02, 2018 1:44 am por While
» dfghmggdsfngmgfdgfhgm
Sáb Jul 09, 2016 4:42 am por While
» Ranks Pro X
Sex Jun 10, 2016 6:44 pm por Harleen
» [Galeria] - Harleen alguns trabalhos
Sex Jun 10, 2016 6:33 pm por Harleen
» Banner para Família
Sex Jun 10, 2016 5:37 pm por YouTube
» Ajuda com Formulário
Sex Jun 10, 2016 2:39 pm por Convidado
» Avatar - Killua
Sex Jun 10, 2016 4:57 am por Convidado
» Destaque IPB
Sex Jun 10, 2016 3:42 am por YouTube
» Últimos assuntos / Staff Online igual BS.
Sex Jun 10, 2016 2:27 am por YouTube
» Adapitação muito grande
Qui Jun 09, 2016 1:53 am por Convidado
» Faça uma pergunta ao membro abaixo
Qui Jun 09, 2016 1:27 am por Anderson_WondeR
» Bom dia a todos!
Qua Jun 08, 2016 11:03 pm por Jukebox