HTML+CSS + JAVASCRIPT Footer Design

 Footer Design:-

HTML CODE:-


        <div class="main"> FOOTER <span id="changeText" style="color: indigo;">DESIGN</span>  IN HTML CSS</div>
        <footer class="footer-distributed">

            <div class="footer-left">

                <h3>WebDev<span>Trick</span></h3>

                <p class="footer-links">
                    <a href="#">Home</a>
                    ·
                    <a href="#">Blog</a>
                    ·
                    <a href="#">Pricing</a>
                    ·
                    <a href="#">About</a>
                    ·
                    <a href="#">Faq</a>
                    ·
                    <a href="#">Contact</a>
                </p>

                <p class="footer-company-name">webdevtrick &copy; 2019</p>
            </div>

            <div class="footer-center">

                <div>
                    <i class="fa fa-map-marker"></i>
                    <p><span>21 Revolution Street</span> Delhi, India</p>
                </div>

                <div>
                    <i class="fa fa-phone"></i>
                    <p>+1 555 123456</p>
                </div>

                <div>
                    <i class="fa fa-envelope"></i>
                    <p><a href="mailto:support@company.com">contact@webdevtrick.com</a></p>
                </div>

            </div>

            <div class="footer-right">

                <p class="footer-company-about">
                    <span>About the company</span>
                    Web Dev Trick is a blog for web designers, graphic designers, web developers &amp; SEO Learner.
                </p>

                <div class="footer-icons">

                    <a href="#"><i class="fa fa-facebook"></i></a>
                    <a href="#"><i class="fa fa-twitter"></i></a>
                    <a href="#"><i class="fa fa-linkedin"></i></a>
                    <a href="#"><i class="fa fa-github"></i></a>

                </div>

            </div>
            
        </footer>
       


CSS CODE:-


body {
    margin0;
    padding0;
    overflow-yscroll
}
.main {
    
    background-color#292c2f;
    colorwhite;
    font-size38pt;
    text-aligncenter;
    line-height400px;
    
}
footer{
    position:relative;
    bottom0;
}
.footer-distributed{
    background-color#292c2f;
    box-shadow0 1px 1px 0 rgba(0000.12);
    box-sizingborder-box;
    width100%;
    text-alignleft;
    fontbold 16px sans-serif;

    padding55px 50px;
    margin-top80px;
}

.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right{
    displayinline-block;
    vertical-aligntop;
}

.footer-distributed .footer-left{
    width40%;
}

.footer-distributed h3{
    color:  #ffffff;
    fontnormal 36px 'Cookie'cursive;
    margin0;
}

.footer-distributed h3 span{
    color:  #5383d3;
}


.footer-distributed .footer-links{
    color:  #ffffff;
    margin20px 0 12px;
    padding0;
}

.footer-distributed .footer-links a{
    display:inline-block;
    line-height1.8;
    text-decorationnone;
    color:  inherit;
}

.footer-distributed .footer-company-name{
    color:  #8f9296;
    font-size14px;
    font-weightnormal;
    margin0;
}


.footer-distributed .footer-center{
    width35%;
}

.footer-distributed .footer-center i{
    background-color:  #33383b;
    color#ffffff;
    font-size25px;
    width38px;
    height38px;
    border-radius50%;
    text-aligncenter;
    line-height42px;
    margin10px 15px;
    vertical-alignmiddle;
}

.footer-distributed .footer-center i.fa-envelope{
    font-size17px;
    line-height38px;
}

.footer-distributed .footer-center p{
    displayinline-block;
    color#ffffff;
    vertical-alignmiddle;
    margin:0;
}

.footer-distributed .footer-center p span{
    display:block;
    font-weightnormal;
    font-size:14px;
    line-height:2;
}

.footer-distributed .footer-center p a{
    color:  #5383d3;
    text-decorationnone;;
}

.footer-distributed .footer-right{
    width20%;
}

.footer-distributed .footer-company-about{
    line-height20px;
    color:  #92999f;
    font-size13px;
    font-weightnormal;
    margin0;
}

.footer-distributed .footer-company-about span{
    displayblock;
    color:  #ffffff;
    font-size14px;
    font-weightbold;
    margin-bottom20px;
}

.footer-distributed .footer-icons{
    margin-top25px;
}

.footer-distributed .footer-icons a{
    displayinline-block;
    width35px;
    height35px;
    cursorpointer;
    background-color:  #33383b;
    border-radius2px;

    font-size20px;
    color#ffffff;
    text-aligncenter;
    line-height35px;

    margin-right3px;
    margin-bottom5px;
}


@media (max-width880px) {

    .footer-distributed{
        fontbold 14px sans-serif;
    
    }

    .footer-distributed .footer-left,
    .footer-distributed .footer-center,
    .footer-distributed .footer-right{
        displayblock;
        width100%;
        margin-bottom40px;
        text-aligncenter;
    }

    .footer-distributed .footer-center i{
        margin-left0;
    }
    .main {
        line-heightnormal;
        font-sizeauto;
    }

}
::-webkit-scrollbar{
    width1px;
    border-radius10px;
}


JAVASCRIPT CODE:-

<script>
            var text = ["Design""Pattern""Structure""Schema"];
            var counter = 0;
            var element = document.getElementById("changeText");
            var timer = setInterval(Change2000);
          
            function Change() {
              element.innerHTML = text[counter];
              counter++;
              if(counter >= text.length) {
                counter = 0;
              }
            }
          </script>


OUTPUT:-









Comments

Popular Posts