Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
4.5 kB
1
Indexable
Never
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="nav">
            <div class="logo">
                <img src="C:\Users\NB\Desktop\Ermal Hasani\DAY 8\img\logo.png"
                    alt>
            </div>

            <div class="right">
                <a href>Flex-Container</a>
                <a href>Flex-column</a>
                <a href>Flex-Row</a>
                <a href>Flex-</a>
            </div>
        </div>
        <div class="main">
            <div>Flex Container</div>
            <div class="container">
                <div class="text">
                    1
                </div>
                <div class="text">
                    2
                </div>
                <div class="text">
                    3
                </div>
            </div>
            <div>Flex Container</div>
            <div class="container-col">
                <div class="text">
                    1
                </div>
                <div class="text">
                    2
                </div>
                <div class="text">
                    3
                </div>
            </div>
            <div>Flex row reverse</div>
            <div class="container-row-reverse">
                <div class="text">
                    1
                </div>
                <div class="text">
                    2
                </div>
                <div class="text">
                    3
                </div>
            </div>
            <div>Flex container warp</div>
            <div class="container-warp">
                <div class="text">1</div>
                <div class="text">2</div>
                <div class="text">3</div>
                <div class="text">4</div>
                <div class="text">5</div>
                <div class="text">6</div>
                <div class="text">7</div>
                <div class="text">8</div>
                <div class="text">9</div>
                <div class="text">10</div>
                <div class="text">11</div>
                <div class="text">12</div>
            </div>
            <div>Flex container nowarp</div>
            <div class="container-no-warp   ">
                <div class="text">1</div>
                <div class="text">2</div>
                <div class="text">3</div>
                <div class="text">4</div>
                <div class="text">5</div>
                <div class="text">6</div>
                <div class="text">7</div>
                <div class="text">8</div>
                <div class="text">9</div>
                <div class="text">10</div>
                <div class="text">11</div>
                <div class="text">12</div>
            </div>
        </div>
    </body>
</html>




body {
    margin: 0;
}

.nav {
    background-color: rgb(0, 116, 217);
    display: flex;
    top: 0;
    right: 0;
    left: 0;
    justify-content: space-between;
    height: 100px;
    align-items: center;
}

img {
    width: 100px;
    height: 100px;
}

.right a {
    font-family: 'Courier New', Courier, monospace;
    text-decoration: none;
    margin: 3px;
    text-shadow: 1px 1px black;
}

.container {
    background-color: rgb(110, 110, 220); 
    height: 80px; 
    display: flex; 
    flex-direction: row; 
    align-items: center;
}

.text { 
    background-color: rgb(255, 255, 255);
    width: 2%; 
    height: 50px; 
    margin: 20px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
}

.container-col {
    background-color: rgb(110, 110, 220);
    display: flex;
    flex-direction: column;
}

.container-row-reverse {
    background-color: rgb(110, 110, 220);
    height: 80px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
.container-warp {
    background-color: rgb(110, 110, 220);
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}
.container-no-warp {
    background-color: rgb(110, 110, 220);
    height: 80px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    flex-wrap: nowarp;
}
Leave a Comment