Thursday, 27 May 2021

navigation CSS

 

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>navigation </title>
    <style>
        .navbar {
            background-colorred;

        }

        .navbar li {
            floatleft;
            list-stylenone;
        }

        .navbar ul {
            overflowauto;
        }

        .navbar li a {
            padding3px 3px;
            margin3px 3px;
        }
    </style>
</head>

<body>
    <header>
        <nav class="navbar">
            <ul>
                <li><a href="#">Home</a></li>
                <li><a href="#">About</a></li>
                <li><a href="#">Services</a></li>
                <li><a href="#">Contact Us</a></li>
            </ul>
        </nav>
    </header>

</body>

</html>



<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>navigation </title>
    <style>
.navbar{
    background-colorblack;
    border-radius15px;

}
.navbar li{
    floatleft;
    list-stylenone;
    margin10px;

}
.navbar ul{
    overflowauto;
    margin5px 10px;
}
.navbar li a{
padding20px 5px;
colorwhite;
text-decorationnone;
}
.navbar li a:active{
    colorred;
}
.navbar li a:hover{
background-coloryellow}
.search{
    floatright;
    colorwhite;
    padding10px ;
    
    }
    .navbar input{
        border-radius10px;
        padding5px;

    }

    </style>
</head>
<body>
 <header>
     <nav class="navbar">
         <ul>
           <li><a href="#">Home</a></li>
           <li><a href="#">About</a></li>
           <li><a href="#">Services</a></li>
           <li><a href="#">Contact Us</a></li>
           <div class="search">
               <input type="text" name="search " id="search" placeholder="Type here to search">
           </div>
         </ul>
     </nav>
 </header>

</body>
</html>

No comments:

Python if / else

 Python if / else a1 = int ( input (" Enter the number: \n ")) a2 = int ( input (" Enter the number: \n ")) a3 = int ( i...