Contact Us Page IN HTML & CSS

 Code Output:

Contact Us Page Tutorial | HTML & CSS




We have given here hover effects to the social-media icons and the Send Button...
If you don't know how to add hover effects and shadows then refer to our previous Posts.


____________________________________________________________________________

index.html

______________________________________________________________________

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

<head>
    <meta charset="UTF-8">
    <title>Contact Us</title>
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Baloo+Bhai|Bree+Serif&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Rowdies&display=swap" rel="stylesheet">
    <style>
        body {
            backgroundlinear-gradient(270deg#ed006d#d620c8);
            text-aligncenter;
            font-familyfantasy;
        }



        form {
            width600px;
            height600px;
            text-aligncenter;
            bordersolid;
            border-spacing58px;
            background-coloraliceblue;
            box-shadow0 4px 8px 0 rgba(0000.2), 0 6px 20px 0 rgba(0000.19);
        }

        .shu {

            margin-top100px;

        }

        .email {
            width200px;
            padding10px;
        }

        .ui {
            width200px;
            padding10px;
        }

        .jd {
            width200px;
            padding10px;
        }

        button {
            bordersolid 2px #d04d4d;
            width120px;
            top80%;
            left45%;
            positionabsolute;
            height50px;
            border-radius10px;
            background-color#d04d4d;
            font-familysans-serif;
            font-weightbold;
            colorbeige;
            box-shadow4px 4px 8px 0 rgba(0000.2), 3px 6px 20px 0 rgba(0000.19);
        }

        input {
            bordersolid 2px #ea4d72;
            border-radius4px;

        }

        textarea {
            bordersolid 2px #ea4d72;
        }

        .social-menu ul {
            positionabsolute;
            top90%;
            left50%;
            transformtranslate(-50%);
            padding0;
            margin0;
            displayflex;
        }

        .social-menu ul li {
            list-stylenone;
            margin0 10px;
        }

        .social-menu ul li .fa {
            color#000000;
            font-size25px;
            line-height50px;
            transition.5s;
        }

        .social-menu ul li .fa:hover {
            color#ffffff;
        }

        .social-menu ul li a {
            positionrelative;
            displayblock;
            width50px;
            height50px;
            border-radius50%;
            background-colorwhite;
            text-aligncenter;
            transition0.5s;
            transformtranslate(00px);
            box-shadow0px 7px 5px rgba(0000.5);
        }

        .social-menu ul li a:hover {
            transformrotate(0degskew(0degtranslate(0-10px);
        }

        .social-menu ul li:nth-child(1a:hover {
            background-color#3b5999;
        }

        .social-menu ul li:nth-child(2a:hover {
            background-color#55acee;
        }

        .social-menu ul li:nth-child(3a:hover {
            background-color#e4405f;
        }

        .social-menu ul li:nth-child(4a:hover {
            background-color#cd201f;
        }

        .social-menu ul li:nth-child(5a:hover {
            background-color#0077B5;
        }


        .iframe-container {
            positionrelative;
            width100%;
            padding-bottom56.25%;
            height0;
        }

        .iframe-container iframe {
            positionabsolute;
            top0;
            left0;
            width100%;
            height100%;
        }

        li {
            bordersolid 2px black;
            border-radius25px;
        }

        button:hover {
            cursorpointer;
        }

    </style>
</head>


<body>
    <center>
        <form>

            <div class="shu">

                <input class="email" type="email" placeholder="Enter E-mail">
                <input class="jd" type="text" placeholder="Full Name"><br>
                <br>
                <br>
                <input class="ui" type="number" placeholder="Enter Phone Number"><br><br>
                <div class="textarea"><a class="mess">Message</a><br>
                    <textarea style="width: 324px; height: 200px;"></textarea>
                </div><br>

                <br>
                <br>
                <button>Send</button>
            </div>
            <div class="social-menu">

                <ul>
                    <li><a href=""><i class="fa fa-facebook"></i></a></li>
                    <li><a href=""><i class="fa fa-twitter"></i></a></li>
                    <li><a href="https://www.instagram.com/shubham.__.sagar"><i class="fa fa-instagram"></i></a></li>
                    <li><a href=""><i class="fa fa-youtube"></i></a></li>
                    <li><a href=""><i class="fa fa-linkedin"></i></a></li>
                </ul>
            </div>
        </form>
    </center>
</body>

</html>


We have added our CSS in the HTML file itself in the style tags.


THANK YOU.....


Article By:

Shubham Sagar

www.youtube.com/c/coveringtheworld

https://www.instagram.com/shubham.__.sagar

facebook.com/codestar712

Code Star, India






1 comment:

  1. This was very helpful for my Website. I wanted to create a good Contact us form which I found here. High Quality Content. Pls tell how to create flip over card in HTML & CSS.

    ReplyDelete

Powered by Blogger.