New Website Home page Design using HTML and CSS

 New website home page design using Html and CSS with all files download


Preview:



HTML Code:

traval.html

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

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <title>Document</title>
</head>

<body>
    <div class="container">
        <nav class="navbar">
            <img class="logo" src="logo 1.png" alt="logo">
            <ul class="navmenu">
                <li><a href="#">Home</a></li>
                <li><a href="#">Services</a></li>
                <li><a href="#">Book Trip</a></li>
                <li><a href="#">Contact</a></li>
                <li><a href="#">About</a></li>
            </ul>
        </nav>
        <div class="center">
            <h1>Explore The Whole World</h1>
            <p class="main">Book Your Trip Now and Enjoy with US</p>
            <p class="info">Lorem ipsum dolor sit amet consectetur adipisicing elit. 
Laborum, omnis soluta quibusdam perspiciatis ducimus et, dolorum totam quod corrupt 
libero nemo quam, culpa nam. Placeat officia atque quia nulla eos, suscipit excepturi
aspernatur, nobis, animi nemo maiores exercitationem? Labore, vero? In, eos similique
 dicta maiores pariatur expedita eligendi unde suscipit?</p>
        </div>
        <div class="button">
            <a href="#">Book Trip</a>
            <a href="#">Contact Us</a>
        </div>
        <div class="footer">
            <p>&#169; This Web Page Created By CodeStudio</p>
        </div>
    </div>
</body>

</html>


CSS Code:

style.css

*{
    margin0;
    padding0;
}
.container{
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
url("background 2.jpg");
    height100vh;
    background-position: center;
    background-size: cover;    
    position: relative;

}
.navbar{
    width100%;
    height10vh;  
}
.navmenu{
    float: right;
    list-style: none;
    margin28px 50px;
}
.logo{
    width73px;
    height70px;
    margin18px 140px;
    cursor: pointer;
    transition0.4s;
}
.logo:hover{
    width77px;
    height74px;
}
.navmenu li{
    display: inline-block;
    margin15px;
    height6vh;
}
.navmenu li a{
    color: #fff;
    text-decoration: none;
    padding5px 20px;
    border2px solid #fff;
    border-radius15px;
    font-size13px;
    text-transform: uppercase;
    transition0.4s;
}
.navmenu li a:hover{
    background: #fff;
    color: #000;
    font-size16px;
}
.center {
    position: absolute;
    width1150px;
    height300px;
    margin13% 13%;
    text-align: center;
    cursor: default;
}
.center h1{
    color: #fff;
    text-transform: uppercase;
    font-size70px;
    transition0.5s;
}
.center h1:hover{
    font-size65px;
    color: rgb(8196230);
}
.main{
    color: rgb(255255255);
    font-size20px;
    margin-top20px;
    text-decoration: underline;
    transition0.5s;
}
.main:hover{
    color: rgb(47218248);
}
.info{
    color: rgb(240240240);
    font-size15px;
    margin-top5px;
}
.button{
    position: absolute;
    text-align: center;
    margin29% 27%;
    width700px;
    height100px;
}
.button a{
    color: #fff;
    font-size20px;
    margin20px;
    padding10px 30px;
    text-decoration: none;
    border4px solid #fff;
    border-radius40px;
    transition0.5s;
}
.button a:hover{
    color: #000;
    background: #fff;
    font-size15px;
}
.footer{
    position: absolute;
    text-align: center;
    margin40% 40%;
    width300px;
    height30px;
    color: rgb(177176176);
    font-size15px;
    text-decoration: underline;
    cursor: default;
}


All Fils Download link:

https://drive.google.com/file/d/13bhS3nTs2G05pxe6cy2DhgVwTPW7VHVX/view?usp=sharing


-By CodeStudio

CodeStudio

Hi, I am Mayur Dehade. I am a Computer Engineering student, Web Developer, Programmer, and also blogger. On this CodeStudio blog, I have uploaded new and interesting coding-related posts and material like notes and provide a full code file.

Post a Comment (0)
Previous Post Next Post