Pesquisar neste blog

05/10/2020

Flex Box 01 em HTML

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>Flexbox #01</title>
    <style>
        div {
            bordersolid 5px dodgerblue;/*Borda azul*/
            font-size40px;
            margin5px;/*diferença de 5px entre as outras*/
        }
        .big{
            font-size1.5em;/*fonte 1.5 maior que as outras*/

        }
        .flex-container{
            displayflex;/*1 única dimensão*/
            flex-directioncolumn-reverse;/*decrescente*/
            flex-directioncolumn-reverse;
            flex-directionrow;
            width50%;/*largura*/
            flexwrap;
            flex-wrapwrap-reverse;
            flex-flowrow wrap;
            height200px;
            flex-flowcolumn-reverse wrap;/*inicia de baixo para cima*/
            flex-flowrow wrap;/*coloca como linha e vai quebrar*/

            justify-contentflex-start;/*Justifica o conteúdo*/
            justify-contentflex-end;/*justifica no final*/
            justify-contentcenter;/*justifica no centro*/
            justify-contentspace-around;
            flex-directionrow-reverse;

            /* Cross Axis */
            height400px;
            align-itemsstretch;
            align-itemsbaseline;
            align-itemsflex-start;
            align-itemsflex-end;/*no rodapé */
            align-itemscenter;/*no centro*/

            /*mais de uma linha*/
            align-contentflex-start;
            align-contentflex-end;
            align-contentcenter;
            align-contentspace-around;
            align-contentspace-between;
        }


    </style>
</head>

<body>
    <div class="flex-container">
        <div>1</div>
        <div>2</div>
        <div class="big">3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
        <div>7</div>
        <div>8</div>
        <div>9</div>
        <div>10</div>
    </div>
</body>

</html>



Nenhum comentário: