Saturday, October 16, 2021

Html page with CSS Flexible box Style

 Html page with CSS Flexible box Style Code

<!DOCTYPE html>

<html>

    <head>

        <meta name="viewport" content="width=device-width, initial-scale=1.0">

         <link rel="STYLESHEET"type="text/css"href="web.css">

        <title>web design</title>

    </head>

    <body>

    <h1>CSS Fliexble box</h1>

    <div class="flex" >

        <div>1</div>

        <div>2</div>

        <div>3</div>

        <div>4</div>

        <div>5</div>

    </div>

    </body>

</html>


 CSS Flexible box Style Code

.flex{

    display: flex;

    flex-wrap: nowrap;

    background-color: dodgerblue;

}

.flex >div{

    background-color: #f1f1f1;

    width:100%;

    margin:10px;

    text-align: center;

    line-height:75px;

    font-size: 35px;

}

No comments:

Post a Comment

JavaScript Animated

  JavaScript Animated <!DOCTYPE html> <html> <style> #myContainer {   width: 400px;   height: 400px;   position: relative;...