Best Web
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Últimos assuntos
» xxxxxxxxxxxxxx
[TUTORIAL] Xicara de Café flat em css puro Clock-10Ter Jan 02, 2018 1:44 am por While

» dfghmggdsfngmgfdgfhgm
[TUTORIAL] Xicara de Café flat em css puro Clock-10Sáb Jul 09, 2016 4:42 am por While

» Ranks Pro X
[TUTORIAL] Xicara de Café flat em css puro Clock-10Sex Jun 10, 2016 6:44 pm por Harleen

» [Galeria] - Harleen alguns trabalhos
[TUTORIAL] Xicara de Café flat em css puro Clock-10Sex Jun 10, 2016 6:33 pm por Harleen

» Banner para Família
[TUTORIAL] Xicara de Café flat em css puro Clock-10Sex Jun 10, 2016 5:37 pm por YouTube

» Ajuda com Formulário
[TUTORIAL] Xicara de Café flat em css puro Clock-10Sex Jun 10, 2016 2:39 pm por Convidado

» Avatar - Killua
[TUTORIAL] Xicara de Café flat em css puro Clock-10Sex Jun 10, 2016 4:57 am por Convidado

» Destaque IPB
[TUTORIAL] Xicara de Café flat em css puro Clock-10Sex Jun 10, 2016 3:42 am por YouTube

» Últimos assuntos / Staff Online igual BS.
[TUTORIAL] Xicara de Café flat em css puro Clock-10Sex Jun 10, 2016 2:27 am por YouTube

» Adapitação muito grande
[TUTORIAL] Xicara de Café flat em css puro Clock-10Qui Jun 09, 2016 1:53 am por Convidado

» Faça uma pergunta ao membro abaixo
[TUTORIAL] Xicara de Café flat em css puro Clock-10Qui Jun 09, 2016 1:27 am por Anderson_WondeR

» Bom dia a todos!
[TUTORIAL] Xicara de Café flat em css puro Clock-10Qua Jun 08, 2016 11:03 pm por Jukebox


[TUTORIAL] Xicara de Café flat em css puro

Ver o tópico anterior Ver o tópico seguinte Ir para baixo

While
While
Administrador
Administrador
Mensagens : 381
Reputação : 8
https://bestweb.forumeiros.com

MensagemWhile Ter maio 24, 2016 6:04 pm

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:
[TUTORIAL] Xicara de Café flat em css puro Jmdu75C

Ver o tópico anterior Ver o tópico seguinte Ir para o topo

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissões neste sub-fórum
Não podes responder a tópicos