How To make a custom website using HTML and CSS

 

How To make a custom website using HTML and CSS

Here is the code of this video you can copy and paste it on your code editor or notepad.

Here Is The Code

HTML CODE

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>Custom Website1</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="wrapper">
        <nav class="navbar">
            <img class="logo" src="images/logo.png" alt="logo">
            <ul>
                <li><a class="active" href="#">Home</a></li>
                <li><a href="#">About</a></li>
                <li><a href="#">Services</a></li>
                <li><a href="#">Contact</a></li>
                <li><a href="#">Feedback</a></li>
            </ul>
        </nav>
        <div class="center">
            <h1>Welcome To Casecade</h1>
            <h2>Create Somthing New</h2>
            <div class="buttons">
                <button>Explore More</button>
                <button class="btn2">Subscribe Us</button>
            </div>
        </div>
    </div>
</body>
</html>

CSS

* {
    padding0;
    margin0;
}

.wrapper {
    backgroundurl(images/bg1.jpg);
    background-sizecover;
    height100vh;
}

.navbar {
    positionfixed;
    height80px;
    width100%;
    top0;
    left0;
    backgroundrgba(0,0,0,0.4);
}

.navbar .logo {
    width140px;
    heightauto;
    padding20px 100px;
}

.navbar ul {
    floatright;
    margin-right20px;
}

.navbar ul li {
    list-stylenone;
    margin0 8px;
    displayinline-block;
    line-height80px;
}

.navbar ul li a {
    font-size20px;
    font-familysans-serif;
    colorwhite;
    padding6px 13px;
    text-decorationnone;
    transition.4s;
}

.navbar ul li a.active.navbar ul li a:hover {
    backgroundred;
    border-radius2px;
}

.wrapper .center {
    positionabsolute;
    left50%;
    top55%;
    transformtranslate(-50%-50%);
    font-familysans-serif;
    user-selectnone;
}

.center h1 {
    colorwhite;
    font-size70px;
    font-weightbold;
    margin-top10px;
    width900px;
    text-aligncenter;
}

.center h2 {
    colorwhite;
    font-size70px;
    font-weightbold;
    margin-top10px;
    width885px;
    text-aligncenter;
}

.center .buttons {
    margin35px 280px;
}

.buttons button {
    height50px;
    width150px;
    font-size18px;
    font-weight600;
    color#ffb3b3;
    backgroundred;
    outlinenone;
    cursorpointer;
    border1px solid #cc0000;
    border-radius25px;
    transition.4s;
}

.buttons .btn2 {
    margin-left25px;
}

.buttons button:hover {
    backgroundblue;
    colorwhite;
    border4px solid white;
}






0 Comments:

Post a Comment