Skip to main content

Awesome Search Bar Using HTML And CSS || Styles Search bar || Web Tutorials : Source Code

 

Tutorial 9

Awesome Search Bar Using HTML And CSS || Styles Search Bar || Web Tutorials : Source Code

  Hey Guys , Welcome To My Blog :-  Web Tutorials || Yuvan Art

Full Process To Create Styles Search Bar :- Click On The Below Link To Watch Full Process To Make Styles Search Bar Using HTML And CSS.







Part ( 1 ) HTML Code :- 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Search Bar</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="search">
        <form action="#">
            <h1>Search Bar</h1>
            <br>
            <input type="search" name="search" placeholder="Search.....">
            <br>
            <button type="submit">Search</button>

        </form>
    </div>
</body>
</html>

Part ( 2 ) CSS Code :- 

*{
    margin: 0;
    padding: 0;
}
body{
    background-color: black;
}
form{
    margin-top: 5%;
    text-align: center;
}
h1{
    color: white;
    margin-bottom: 10px;
    font-size: 80px;
}
input{
    margin-bottom: 30px;
    text-align: center;
    width: 70%;
    padding: 10px;
    font-size: 15px;
    border-radius: 20px;
}
button{
    border: none;
    width: 200px;
    padding: 10px;
    font-size: 15px;
    border-radius: 20px;
    cursor: pointer;
    background: #00fa9a;
}
input:hover{
    background-color: ghostwhite;
}
button:hover{
    background-color: springgreen;
}


Comments