Pesquisar neste blog

14/08/2020

Modelo de box 02 em HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Box Model</title>
    <style>
        /*  */
        bodyfont-size80pxmargin0;}
        .c1{background-colororange;}
        .c2{background-coloryellow;}
        .c3{background-colortomato;}

        div{
            floatleft;/*elementos à esquerda*/
            padding-top100px;
            padding10px 50px 100px 150px;/*largura*/
            padding100px 50px;/*comprimento*/
            padding50px;
            margin0px 20px;/*margem apenas na horizontal*/
            bordersolid 15px black;/*borda tamanho 15 cor preta*/
        }

    </style>
</head>
<body>
    <div class="c1">1</div>
    <div class="c2">2</div>
    <div class="c3">3</div>
</body>
</html>


 

Nenhum comentário: