Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Flexbox IN-DEPTH</title>
- <link rel="stylesheet" href="style.css" />
- <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
- </head>
- <style>
- @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,400;0,700;0,900;1,100;1,900&display=swap');
- *{
- margin:0;
- padding: 0;
- box-sizing: border-box;
- font-family: 'Lato', sans-serif;
- }
- h1{
- text-align: center;
- text-transform: uppercase;
- background: crimson;
- color: wheat;
- padding:20px;
- }
- /*
- .container{
- background: #999;
- padding: 40px;
- display: flex;
- flex-direction:row;
- justify-content: space-between;
- align-items: center;
- }
- .item{
- margin:20px;
- padding: 20px;
- background: crimson;
- color: wheat;
- }
- .i1{
- align-self: flex-end;
- order: 1;
- flex-grow: 1;
- }
- .i3{
- height: 250px;
- font-size: 35px;
- }
- .i4{
- align-self: flex-start;
- order: 0;
- }
- .i5{
- align-self: flex-end;
- order: -1 ;
- flex-basis: 200px ;
- } */
- /* .container{
- background: coral;
- padding: 40px;
- display: flex;
- flex-direction:row;
- justify-content: center;
- align-items: center;
- flex-wrap: wrap;
- align-content: flex-end;
- }
- .item{
- background: cornsilk;
- padding: 20px;
- margin:20px;
- color: #333;
- } */
- /* .i1{
- height: 100px;
- } */
- /* .i1{
- font-size: 30px;
- order:1;
- flex-basis: 350px;
- flex-shrink: 0;
- }
- .i5{
- align-self: center;
- order:-1;
- flex-grow: 1;
- }
- .i3{
- flex-grow: 2;
- flex-shrink: 0 ;
- } */
- .navbar-main{
- /* background: rgba(255, 255, 255,0.5); */
- background-color: rgba(0,0,0,0.0);
- box-shadow: 2px 5px 10px rgb(0, 0, 0,0.5);
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding:15px 50px;
- }
- .logo{
- font-size: 30px;
- color: #1d3557;
- }
- .logo-text{
- font-size: 30px;
- margin-left: 10px;
- }
- .logo-side{
- }
- .li-containers{
- display: flex;
- align-items: center;
- }
- .item {
- padding: 10px;
- text-transform: uppercase;
- letter-spacing: 0.3px;
- text-decoration: none;
- color: #457b9d;
- }
- .item:hover{
- cursor: pointer;
- text-decoration: underline;
- color: #306180;
- /* font-weight: 800; */
- font-size: 15px;
- box-shadow: 3px 5px 10px #457b9d;
- border-radius: 5px;
- padding-left: 10px;
- }
- .btn{
- background: #457b9d;
- color: #f1faee;
- border-radius: 5px;
- text-transform: uppercase;
- margin-left:10px;
- letter-spacing: 0.3px;
- }
- .btn:hover{
- cursor: pointer;
- text-decoration: underline;
- color: #f1faee;
- /* font-weight: 800; */
- font-size: 20px;
- box-shadow: 3px 5px 10px #457b9d;
- border-radius: 5px;
- }
- .btn-outline{
- color: #457b9d;
- border:1px solid#457b9d;
- border-radius: 5px;
- padding:9px;
- }
- </style>
- <body>
- <!-- <h1>Understanding Flexbox - A modern Approach</h1> -->
- <!--We will be studying 2 different approach for making nav bars.-->
- <!--Approach 1-->
- <!-- <div class="container">
- <div class="item i1">~~LOGO~~</div>
- <div class="item">Clients</div>
- <div class="item i3">About Us</div>
- <div class="item i4">Contact Us</div>
- <div class="item">Clients</div>
- <div class="item i3">About Us</div>
- <div class="item i4">Contact Us</div>
- <div class="item i5">Login</div> -->
- </div>
- <!--
- <div class="card">
- <h1 class="card-head">Jane Doe</h1>
- </div> -->
- <!--Approach II-->
- <nav class="navbar-main">
- <div class="logo-side">
- <i class="fas fa-server logo"></i> <span class="logo-text">iCompany</span>
- </div>
- <div class="li-containers">
- <div ><a href="#" class="item">Home</a> </div>
- <div ><a href="#" class="item">Products</a> </div>
- <div ><a href="#" class="item">Services</a> </div>
- <div ><a href="#" class="item btn-outline">Login</a></div>
- <div ><a href="#" class="item btn">Register</a> </div>
- </div>
- <!-- <ul>
- <li><a href="">Home</a></li>
- <li><a>Home</a></li>
- <li><a>Home</a></li>
- <li><a>Home</a></li>
- </ul> -->
- </nav>
- </body>
- </html>
Add Comment
Please, Sign In to add comment