ZeroCyber

E-commerce Shopping Website 1

  Create Shopping Website Using HTML CSS And jQuery

How To Create Shopping Website Using HTML CSS And jQuery

Basic HTML Code

  1.  <html>
    <head>
    <meta charset="utf-8">
    <meta content="IE-edge" http-equiv="X-UA-Compatible">
    <meta content="width=device-width, intial-scale=1.0" name="viewport">
    <title>Shopping Website</title>
    <!--fav-icon---------------->
    <link rel="shortcut icon" href="images/fav-icon.png"/>
    <!--style----->
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
        
    body{
    font-family:poppins;
    }
    </style>

    </head>
    <body>
    </body>
    </html>

Navigation Bar

Navigation Bar HTML CSS


Navigation Bar HTML Code have given below.

  1.    <nav> 
               <!--social-links-and-phone-number----------------->
        <div class="social-call">
            <!--social-links--->
            <div class="social">
                <a href="#"><i class="fab fa-facebook-f"></i></a>
                <a href="#"><i class="fab fa-twitter"></i></a>
                <a href="#"><i class="fab fa-youtube"></i></a>
                <a href="#"><i class="fab fa-instagram"></i></a>
            </div>
            <!--phone-number------>
            <div class="phone">
                <span>Call: +123456789</span>
            </div>
        </div>
        <!--menu-bar----------------------------------------->
        <div class="navigation">
            <!--logo------------>
            <a href="#" class="logo"><img src="images/logo.png"></a>
            <!--menu-icon------------->
            <div class="toggle"></div>
            <!--menu----------------->
            <ul class="menu">
                <li><a href="#">Home</a></li>
                <li  class="shop"><a href="#" >Shop</a></li>
                <li><a href="#">Men</a>
                    <!--lable---->
                    <span class="sale-lable">Sale</span>
                </li>
                <li><a href="#">Women</a></li>
                <li><a href="#">Kids</a></li>
            </ul>
            <!--right-menu----------->
            <div class="right-menu">
                <a href="javascript:void(0);" class="search">
                    <i class="fas fa-search"></i>
                </a>
                <a href="javascript:void(0);" class="user">
                    <i class="far fa-user"></i>
                </a>
                <a href="#">
                    <i class="fas fa-shopping-cart">
                        <span class="num-cart-product">0</span>
                    </i>
                </a>
            </div>
            </div>
        </nav>

  Font Awesome Link

  1. <!--using FontAwesome---------------> <script crossorigin="anonymous" src="https://kit.fontawesome.com/c8e4d183c2.js"></script>
  2.  

Navigation Bar CSS Code is have given below.

  1.  @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
    body{
        margin:0px;
        padding: 0px;
        font-family: poppins;
        background-color: #ffffff;
    }
    *{
        box-sizing: border-box;
    }
    ul{
        list-style: none;
    }
    a{
        text-decoration: none;
    }
    nav{
        width:100%;
        box-shadow: 2px 2px 30px rgba(0,0,0,0.05);
        z-index: 100;
    }
    .social-call{
        height: 40px;
        border: 1px solid rgba(0,0,0,0.05);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .social a{
        margin: 0px 5px;
        color: rgba(0,0,0,0.7);
        font-size: 0.9rem;
    }
    .phone{
        color: rgba(0,0,0,0.7);
        margin-left: 30px;
        font-size: 0.9rem;
    }
    .social a:hover{
        color: #0b9d8a;
        transition: all ease 0.3s;
    }
    .navigation{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0px 45px;
    }
    .logo img{
        height: 30px;
    }
    .menu{
        display: flex;
    }
    .menu li{
        position: relative;
        margin: 20px;
        display: flex;
        text-transform: uppercase;
        font-weight: 500;
    }
    .menu li a{
        color: #555555;
    }
    .right-menu a{
        margin: 0px 10px;
        font-size: 1.2rem;
        color: rgba(0,0,0,0.7);
    }
    .menu a:hover,
    .right-menu a:hover,
    .search-cancel:hover,
    .form-cancel:hover{
        color: #0b9d8a;
        transition: all ease 0.3s;
    }
    .sale-lable{
        width:38px;
        height: 17px;
        background-color: #f76b6a;
        color: #ffffff;
        font-weight: 400;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.7rem;
        text-transform: uppercase;
        position: absolute;
        top: -20px;
        right: -20px;
    }
    .sale-lable:after{
        content: '';
        width:0px;
        height: 0px;
        border-bottom: 5px solid transparent;
        border-left: 3px solid transparent;
        border-top: 7px solid #f76b6a;
        border-right: 5px solid transparent;
        position: absolute;
        left: 10%;
        top: 100%;
    }
    .fa-shopping-cart{
        position: relative;
    }
    .num-cart-product{
        position: absolute;
        top: -17px;
        right: -17px;
        width:25px;
        height: 25px;
        font-size: 0.8rem;
        border-radius: 50%;
        background-color: #0b9d8a;
        color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 400;
    }
Search Bar
Search Bar HTML

Search Bar HTML Code have given below.

  1.  <!--search-bar----------------------------------->
        <div class="search-bar">
        
            <!--search-input------->
            <div class="search-input">
            <input type="text" placeholder="Search For Product" name="search" />
            <!--cancel-btn--->
            <a href="javascript:void(0);" class="search-cancel">
                <i class="fas fa-times"></i>
            </a>
        
        </div>
        </div>
      
  Search Bar CSS Code is have given below.
  1.  
    .search-bar{
        width:100%;
        height: 300px;
        background-color: #ffffff;
        position: fixed;
        left: 0px;
        bottom: 0px;
        display: flex;
        justify-content: center;
        box-shadow: 2px -5px 30px rgba(0,0,0,0.1);
        z-index: 101;
        animation: search 0.3s;
    }
    .search-input{
        width:90%;
        border-bottom: 2px solid #555555;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100px;
        margin-top: 20px;
    }
    .search-bar input{
        width:100%;
        padding: 30px;
        border: none;
        outline: none;
        font-size: 2rem;
        margin: 20px;
        padding: 0px 20px;
    }
    .search-cancel{
        color: #272727;
        font-size: 2rem;
        padding-right: 40px;
    }
    .search-bar{
        display: none;
    }
    .search-bar-active{
        display: flex;
    }
    @keyframes search{
        0%{
            bottom: -300px;
        }
        100%{
            bottom: 0px;
        }
    }
JQuery Link
  1.   <!--using JQuery--------------->

    <script src="https://code.jquery.com/jquery-3.5.1.js" integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" crossorigin="anonymous"></script>

      

Search Bar JavaScript

  1.  /*-----For Search Bar-----------------------------*/
        $(document).on('click','.search',function(){
            $('.search-bar').addClass('search-bar-active')
        });
     
        $(document).on('click','.search-cancel',function(){
            $('.search-bar').removeClass('search-bar-active')
        });
      

Login And Sign Up Form
Login and Sign Up Form HTML

Side Login and Registration Form Bar HTML Code have given below.

  1.  <!---login-and-sign-up--------------------------------->
        <div class="form">
            <!--login---------->
            <div class="login-form">
                <!--cancel-btn---------------->
                <a href="javascript:void(0);" class="form-cancel">
                    <i class="fas fa-times"></i>
                </a>
                <strong>Log In</strong>
                <!--inputs-->
                <form>
                    <input type="email" name="email" placeholder="Example@gmail.com" required/>
                    <input type="password" name="password" placeholder="Password" required/>
                    <input type="submit" value="Log In"/>
                </form>
                <!--forget-and-sign-up-btn-->
                <div class="form-btns">
                    <a href="#" class="forget">Forget Your Password?</a>
                    <a href="javascript:void(0);" class="sign-up-btn">Create Account</a>
                </div>
            </div>
                <!--Sign-up---------->
                <div class="sign-up-form">
                    <!--cancel-btn---------------->
                <a href="javascript:void(0);" class="form-cancel">
                    <i class="fas fa-times"></i>
                </a>
                    <strong>Sign Up</strong>
                    <!--inputs-->
                    <form>
                        <input type="text" name="fullname" placeholder="Full Name" required/>
                        <input type="email" name="email" placeholder="Example@gmail.com" required/>
                        <input type="password" name="password" placeholder="Password" required/>
                        <input type="submit" value="Sign Up"/>
                    </form>
                    <!--forget-and-sign-up-btn-->
                    <div class="form-btns">
                        <a href="javascript:void(0);" class="already-account">
                            Already Have Account?</a>
        
                    </div>
                </div>
        </div>
      
 Login and Sign Up Form CSS Code is have given below.
  1. .form{
        width:100%;
        height: 100%;
        position: fixed;
        top: 0px;
        left: 0px;
        background-color: rgba(0,0,0,0.2);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        z-index: 102;
    }
    .login-form,
    .sign-up-form{
        width:420px;
        padding: 20px 10px;
        background-color: #ffffff;
        box-shadow: 2px 2px 30px rgba(0,0,0,0.1);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        border-radius: 5px;
        position: relative;
     
    }
    .login-form form,
    .sign-up-form form{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
    }
    .login-form strong,
    .sign-up-form strong{
        color: #272727;
        font-size: 2rem;
        margin: 2px 7px 7px 7px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 500;
    }
    .login-form input,
    .sign-up-form input{
        width:90%;
        height: 45px;
        margin: 6px 0px;
        padding: 0px 10px;
        border: 1px solid rgba(0,0,0,0.1);
        outline: none;
        border-radius: 7px;
    }
    .login-form input::placeholder,
    .sign-up-form input::placeholder{
        color: rgba(0,0,0,0.5);
    }
    .login-form input[type="submit"],
    .sign-up-form input[type="submit"]{
        background-color: #0b9d8a;
        color: #ffffff;
        border: none;
        outline: none;
        text-transform: uppercase;
        margin-top: 10px;
        border-radius: 3px;
        box-shadow: 2px 2px 30px rgba(0,0,0,0.1);
    }
    .form-btns{
        width: 90%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }
    .form-btns a{
        color: #4d4d4d;
        font-size: 0.9rem;
    }
    .sign-up-btn{
        border-bottom: 1px solid #868686;
        line-height: 16px;
    }
    .form-cancel{
        position: absolute;
        right: 20px;
        top: 10px;
        color: #868686;
    }
    .login-form,
    .sign-up-form,
    .form{
        display: none;
    }
    .login-active,
    .login-active .login-form{
        display: flex;
        animation: fade 0.3s;
    }
     
    .sign-up-active,
    .sign-up-active .sign-up-form{
        display: flex;
        animation: fade 0.3s;
    }
    @keyframes fade{
        0%{
            opacity: 0;
        }
        100%{
            opacity: 1;
        }
    }

 Login and Sign Up JavaScript Code

  1.   /*---For Login and Sign-up----------------------------*/
        $(document).on('click','.user,.already-account',function(){
            $('.form').addClass('login-active').removeClass('sign-up-active')
        });
     
        $(document).on('click','.sign-up-btn',function(){
            $('.form').addClass('sign-up-active').removeClass('login-active')
        });
     
        $(document).on('click','.form-cancel',function(){
            $('.form').removeClass('login-active').removeClass('sign-up-active')
        });
     


Full Slider
Create Full Page Slider HTML and JS

Full Slider HTML Code have given below.

  1. <span style="color: #fff2cc; font-family: Consolas, monaco, monospace; font-size: 1.2rem;"> &lt;!-----------full-slider-----------------------------&gt; &lt;ul id="adaptive" class="cs-hidden"&gt; &lt;!--box-1---------------------------&gt; &lt;li class="item-a"&gt; &lt;!---box-------------------&gt; &lt;div class="full-slider-box f-slide-1"&gt; &lt;div class="f-slider-text-container"&gt; &lt;div class="f-slider-text"&gt; &lt;span&gt;Limited Offer&lt;/span&gt; &lt;strong&gt;30% Off&lt;br/&gt; With &lt;font&gt;Promo Code&lt;/font&gt;&lt;/strong&gt; &lt;a href="#" class="f-slider-btn"&gt;Shop Now&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/li&gt; &lt;!--box-2---------------------------&gt; &lt;li class="item-b"&gt; &lt;!---box-------------------&gt; &lt;div class="full-slider-box f-slide-2"&gt; &lt;div class="f-slider-text-container"&gt; &lt;div class="f-slider-text"&gt; &lt;span&gt;Limited Offer&lt;/span&gt; &lt;strong&gt;30% Off&lt;br/&gt; With &lt;font&gt;Promo Code&lt;/font&gt;&lt;/strong&gt; &lt;a href="#" class="f-slider-btn"&gt;Shop Now&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/li&gt; &lt;!--box-3---------------------------&gt; &lt;li class="item-c"&gt; &lt;!---box-------------------&gt; &lt;div class="full-slider-box f-slide-3"&gt; &lt;div class="f-slider-text-container"&gt; &lt;div class="f-slider-text"&gt; &lt;span&gt;Limited Offer&lt;/span&gt; &lt;strong&gt;30% Off&lt;br/&gt; With &lt;font&gt;Promo Code&lt;/font&gt;&lt;/strong&gt; &lt;a href="#" class="f-slider-btn"&gt;Shop Now&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/li&gt; &lt;/ul&gt; </span>

Full Slider CSS Code is have given below.

  1. .full-slider-box{
  2. width:100%;
  3. height: 65vh;
  4. display: flex;
  5. justify-content: center;
  6. align-items: center;
  7. background-size: cover;
  8. background-repeat: no-repeat;
  9. background-position: center;
  10. }
  11. .f-slide-1{
  12. background-image: url(../images/Slider_01.jpg);
  13. }
  14. .f-slide-2{
  15. background-image: url(../images/Slider_02.jpg);
  16. }
  17. .f-slide-3{
  18. background-image: url(../images/Slider_03.jpg);
  19. }
  20. .slider-text-container{
  21. width:80%;
  22. height: 90%;
  23. display: flex;
  24. align-items: center;
  25. }
  26. .f-slider-text{
  27. display: flex;
  28. flex-direction: column;
  29. margin-right: auto;
  30. }
  31. .f-slider-text strong{
  32. color: #333333;
  33. font-size: 3rem;
  34. line-height: 55px;
  35. margin-top: 10px;
  36. letter-spacing: 1px;
  37. }
  38. .f-slider-text span{
  39. text-transform: uppercase;
  40. letter-spacing: 6px;
  41. font-weight: 500;
  42. color: #666666;
  43. font-size: 1.2rem;
  44. }
  45. .f-slider-btn{
  46. width:170px;
  47. height: 40px;
  48. display: flex;
  49. justify-content: center;
  50. align-items: center;
  51. color: #ffffff;
  52. background-color: #0b9d8a;
  53. text-transform: uppercase;
  54. letter-spacing: 2px;
  55. margin-top: 14px;
  56. }
  57. .f-slider-text strong font{
  58. color: #0b9d8a;
  59. }

Full Slider JavaScript Code

  1. /*----Full Page Slider---------------*/
  2.  
  3. $(document).ready(function() {
  4. $('#adaptive').lightSlider({
  5. adaptiveHeight:true,
  6. auto:true,
  7. item:1,
  8. slideMargin:0,
  9. loop:true
  10. });
  11. });

FEATURED CATEGORIES
Create Featured Categories Slider HTML CSS

Featured Categories Slider HTML Code have given below.

  1. <span style="color: #aeaeae; font-family: Consolas, monaco, monospace;"> &lt;!--product-categories-slider----------------------&gt; &lt;ul id="autoWidth" class="container" class="cs-hidden"&gt; &lt;!--box-1---------------------&gt; &lt;li class="item"&gt; &lt;div class="feature-box"&gt; &lt;a href="#"&gt; &lt;img src="images/feature_1.jpg"&gt; &lt;/a&gt; &lt;/div&gt; &lt;span&gt;T-Shirts&lt;/span&gt; &lt;/li&gt; &lt;!--box-2---------------------&gt; &lt;li class="item"&gt; &lt;div class="feature-box"&gt; &lt;a href="#"&gt; &lt;img src="images/feature_2.jpg"&gt; &lt;/a&gt; &lt;/div&gt; &lt;span&gt;Men T-Shirts&lt;/span&gt; &lt;/li&gt; &lt;!--box-3---------------------&gt; &lt;li class="item"&gt; &lt;div class="feature-box"&gt; &lt;a href="#"&gt; &lt;img src="images/feature_3.jpg"&gt; &lt;/a&gt; &lt;/div&gt; &lt;span&gt;Kids T-Shirts&lt;/span&gt; &lt;/li&gt; &lt;!--box-4---------------------&gt; &lt;li class="item"&gt; &lt;div class="feature-box"&gt; &lt;a href="#"&gt; &lt;img src="images/feature_4.jpg"&gt; &lt;/a&gt; &lt;/div&gt; &lt;span&gt;Pillow&lt;/span&gt; &lt;/li&gt; &lt;!--box-5---------------------&gt; &lt;li class="item"&gt; &lt;div class="feature-box"&gt; &lt;a href="#"&gt; &lt;img src="images/feature_5.jpg"&gt; &lt;/a&gt; &lt;/div&gt; &lt;span&gt;Phone Cover&lt;/span&gt; &lt;/li&gt; &lt;!--box-6---------------------&gt; &lt;li class="item"&gt; &lt;div class="feature-box"&gt; &lt;a href="#"&gt; &lt;img src="images/feature_6.jpg"&gt; &lt;/a&gt; &lt;/div&gt; &lt;span&gt;Shopping Bags&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt; </span>

Featured Categories Slider CSS Code is have given below.

  1.  
  2. .feature-heading{
  3. display: flex;
  4. justify-content: center;
  5. align-items: center;
  6. }
  7. .feature-heading h2{
  8. font-size: 1.2rem;
  9. letter-spacing: 1px;
  10. color: #1b1919;
  11. text-transform: uppercase;
  12. font-weight: 600;
  13. margin-top: 40px;
  14. padding: 5px 30px;
  15. border: 1px solid #e0e0e0;
  16. }
  17. .feature-box{
  18. width:155px;
  19. height: 160px;
  20. margin: 0px 20px;
  21. border-radius: 10px;
  22. overflow: hidden;
  23. }
  24. .feature-box a img{
  25. width:100%;
  26. height: 100%;
  27. object-fit: cover;
  28. object-position: center;
  29. }
  30. .item span{
  31. font-size: 1rem;
  32. font-weight: 600;
  33. margin: 5px;
  34. color: #444444;
  35. }
  36. .item{
  37. display: flex;
  38. flex-direction: column;
  39. justify-content: center;
  40. align-items: center;
  41. }
  42. #autoWidth{
  43. display: flex;
  44. justify-content: center !important;
  45. margin: 10px auto 40px auto;
  46. }

Featured Categories Slider JavaScript Code

  1. /*--For-Product-SLider----------------*/
  2. $(document).ready(function() {
  3. $('#autoWidth').lightSlider({
  4. autoWidth:true,
  5. loop:true,
  6. onSliderLoad: function() {
  7. $('#autoWidth').removeClass('cS-hidden');
  8. }
  9. });
  10. });

Product List-1
Create E-Commerce Product HTML CSS

Product list-1 HTML Code have given below.

  1. <span style="color: #aeaeae; font-family: Consolas, monaco, monospace;"> &lt;!--NEW ARRIVAL--------------------------------&gt; &lt;section class="new-arrival"&gt; &lt;!--heading--------&gt; &lt;div class="arrival-heading"&gt; &lt;strong&gt;New Arrival&lt;/strong&gt; &lt;p&gt;We Provide You New Fasion Design Clothes&lt;/p&gt; &lt;/div&gt; &lt;!--products-----------------------&gt; &lt;div class="product-container"&gt; &lt;!--product-box-1----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt; &lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt; &lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-1.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--product-box-2----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt;&lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt;&lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-2.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--product-box-3----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt;&lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt;&lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-3.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--product-box-4----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt;&lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt;&lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-4.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--product-box-5----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt;&lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt;&lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-5.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--product-box-6----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt;&lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt;&lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-6.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--product-box-7----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt;&lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt;&lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-7.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--product-box-8----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt; &lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt; &lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-8.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/section&gt; </span>
  1. .arrival-heading strong{
  2. font-size: 1.2rem;
  3. letter-spacing: 1px;
  4. color: #1b1919;
  5. text-transform: uppercase;
  6. font-weight: 600;
  7. margin-top: 40px;
  8. padding: 5px 30px;
  9. border: 1px solid #e0e0e0;
  10. }
  11. .arrival-heading{
  12. display: flex;
  13. justify-content: center;
  14. align-items: center;
  15. flex-direction: column;
  16. }
  17. .arrival-heading strong{
  18. color: #ffffff;
  19. background-color: #202020;
  20. font-weight: 500;
  21. }
  22. .arrival-heading p{
  23. color: #808080;
  24. margin: 10px;
  25. font-size: 0.9rem;
  26. }
  27. .product-container{
  28. width:90%;
  29. display: flex;
  30. justify-content: center;
  31. align-items: center;
  32. flex-wrap: wrap;
  33. margin-top: 20px;
  34. }
  35. .product-box{
  36. display: flex;
  37. flex-grow: 0.5;
  38. flex-direction: column;
  39. align-items: center;
  40. border: 1px solid #f7f7f7;
  41. border-radius: 10px;
  42. margin: 20px;
  43. }
  44. .product-img{
  45. width:200px;
  46. height: 210px;
  47. margin: 20px;
  48. cursor: pointer;
  49. position: relative;
  50. }
  51. .product-img img{
  52. width:100%;
  53. height: 100%;
  54. object-fit: contain;
  55. object-position: center;
  56. }
  57. .product-details{
  58. display: flex;
  59. flex-direction: column;
  60. align-items: center;
  61. width: 100%;
  62. padding: 10px 20px;
  63. border-top: 1px solid #f3f3f3;
  64. }
  65. .p-name{
  66. color: #727272;
  67. }
  68. .p-price{
  69. color: #333333;
  70. font-size: 1.2rem;
  71. font-weight: 400;
  72. }
  73. .product-box:hover{
  74. box-shadow: 2px 2px 30px rgba(0,0,0,0.1);
  75. }
  76. .add-cart{
  77. position: absolute;
  78. right: -20px;
  79. top: 10px;
  80. width:50px;
  81. height: 50px;
  82. border-radius: 50%;
  83. display: flex;
  84. justify-content: center;
  85. align-items: center;
  86. color: #ffffff;
  87. background-color: #0b9d8a;
  88. box-shadow: 2px 2px 30px rgba(0,0,0,0.1);
  89. display: none;
  90. animation: fade 0.3s;
  91.  
  92. }
  93. .add-cart:hover{
  94. background-color: #f76b6a;
  95. transition: all ease 0.2s;
  96. }
  97. .product-box:hover .add-cart{
  98. display: flex;
  99. }
  100. .new-arrival{
  101. display: flex;
  102. flex-direction: column;
  103. justify-content: center;
  104. align-items: center;
  105. }

Sale Offer Boxes
Create Sale Offer Boxes HTML

Sale Offer Boxes HTML Code have given below.

  1. <span style="color: #aeaeae; font-family: Consolas, monaco, monospace;"> &lt;!---sale------------------------------------&gt; &lt;section class="sale"&gt; &lt;!--sale-box-1--------------------&gt; &lt;div class="sale-box sale-1"&gt; &lt;img src="images/sale-1.jpg"&gt; &lt;a href="#"&gt; &lt;div class="sale-text"&gt; &lt;strong&gt;Bag with rose pattern&lt;/strong&gt; &lt;span&gt;Sale off 25%&lt;/span&gt; &lt;/div&gt;&lt;/a&gt; &lt;/div&gt; &lt;!--sale-box-2--------------------&gt; &lt;div class="sale-box sale-1"&gt; &lt;img src="images/sale-2.jpg"&gt; &lt;a href="#"&gt;&lt;div class="sale-text"&gt; &lt;strong&gt;Hello Summer&lt;/strong&gt; &lt;span&gt;Sale off 20%&lt;/span&gt; &lt;/div&gt;&lt;/a&gt; &lt;/div&gt; &lt;!--sale-box-3--------------------&gt; &lt;div class="sale-box sale-1"&gt; &lt;img src="images/sale-3.jpg"&gt; &lt;a href="#"&gt; &lt;div class="sale-text"&gt; &lt;strong&gt;Let's Party Hard Pillow&lt;/strong&gt; &lt;span&gt;Sale off 25%&lt;/span&gt; &lt;/div&gt;&lt;/a&gt; &lt;/div&gt; &lt;/section&gt; </span>

 Side Login and Registration Form CSS Code is have given below.

  1.  
  2. .sale{
  3. width:95%;
  4. display: flex;
  5. justify-content: center;
  6. align-items: center;
  7. flex-wrap: wrap;
  8. margin: 20px auto;
  9. }
  10. .sale-box{
  11. width:280px;
  12. border-radius: 20px;
  13. margin: 20px;
  14. position: relative;
  15. flex-grow: 0.5;
  16. }
  17. .sale-box img{
  18. width:100%;
  19. height: 100%;
  20. object-fit: cover;
  21. object-position: center right;
  22. }
  23. .sale-text{
  24. position: absolute;
  25. left: 20%;
  26. top: 50%;
  27. transform: translate(-20%,-50%);
  28. display: flex;
  29. flex-direction: column;
  30. }
  31. .sale-box a{
  32. color: #1b1919;
  33. }
  34. .sale-text strong{
  35. font-size: 1.2rem;
  36. font-weight: 500;
  37. width: 80%;
  38. line-height: 23px;
  39. }

Product List-2
Create Product Boxes HTML CSS

Product Box List-2 HTML Code have given below.

  1. <span style="color: #aeaeae; font-family: Consolas, monaco, monospace;"> &lt;!--Feature-items--------------------------------&gt; &lt;section class="feature-item"&gt; &lt;!--heading--------&gt; &lt;div class="feature-heading"&gt; &lt;strong&gt;Featured Items&lt;/strong&gt; &lt;p&gt;We Provide You New Fasion Design Clothes&lt;/p&gt; &lt;/div&gt; &lt;!--products-----------------------&gt; &lt;div class="product-container"&gt; &lt;!--product-box-1----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt;&lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt;&lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-1.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--product-box-2----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt;&lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt;&lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-2.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--product-box-3----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt;&lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt;&lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-3.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!--product-box-4----------&gt; &lt;div class="product-box"&gt; &lt;!--product-img------------&gt; &lt;div class="product-img"&gt; &lt;!--add-cart----&gt; &lt;a href="#" class="add-cart"&gt;&lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt;&lt;/a&gt; &lt;!--img------&gt; &lt;img src="images/p-4.png"&gt; &lt;/div&gt; &lt;!--product-details--------&gt; &lt;div class="product-details"&gt; &lt;a href="#" class="p-name"&gt;Drawstring T-Shirt&lt;/a&gt; &lt;span class="p-price"&gt;$22.00&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/section&gt; </span>
Sale Banner
Create Banner HTML CSS

Sale Banner HTML Code have given below.

  1. <span style="color: #aeaeae; font-family: Consolas, monaco, monospace;"> &lt;!--banner--&gt; &lt;div class="banner-box f-slide-3"&gt; &lt;div class="banner-text-container"&gt; &lt;div class="banner-text"&gt; &lt;span&gt;Limited Offer&lt;/span&gt; &lt;strong&gt;30% Off&lt;br/&gt; With &lt;font&gt;Promo Code&lt;/font&gt;&lt;/strong&gt; &lt;a href="#" class="banner-btn"&gt;Shop Now&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </span>

Sale Banner CSS Code is have given below.

  1.  
  2.  
  3. .banner-box{
  4. width:100%;
  5. height: 40vh;
  6. margin: 20px 0px;
  7. display: flex;
  8. justify-content: center;
  9. align-items: center;
  10. background-image: url(../images/Slider_03.jpg);
  11. background-size: cover;
  12. background-repeat: no-repeat;
  13. background-position: center;
  14. }
  15.  
  16. .banner-text-container{
  17. width:80%;
  18. height: 90%;
  19. display: flex;
  20. align-items: center;
  21. }
  22.  
  23. .banner-text{
  24. display: flex;
  25. flex-direction: column;
  26. margin-right: auto;
  27. }
  28.  
  29. .banner-text strong{
  30. color: #333333;
  31. font-size: 3rem;
  32. line-height: 55px;
  33. margin-top: 10px;
  34. letter-spacing: 1px;
  35. }
  36.  
  37. .banner-text span{
  38. text-transform: uppercase;
  39. letter-spacing: 6px;
  40. font-weight: 500;
  41. color: #666666;
  42. font-size: 1.2rem;
  43. }
  44.  
  45. .banner-btn{
  46. width:170px;
  47. height: 40px;
  48. display: flex;
  49. justify-content: center;
  50. align-items: center;
  51. color: #ffffff;
  52. background-color: #0b9d8a;
  53. text-transform: uppercase;
  54. letter-spacing: 2px;
  55. margin-top: 14px;
  56. }
  57. .banner-text strong font{
  58. color: #0b9d8a;
  59. }
  60.  

Services Box and Footer
Create Services Box and Footer using HTML CSS

Services Box and Footer HTML Code have given below.

  1. <span style="color: #aeaeae; font-family: Consolas, monaco, monospace;"> &lt;!--services-------------------------&gt; &lt;section class="services"&gt; &lt;!--services-box----------&gt; &lt;div class="services-box"&gt; &lt;i class="fas fa-shipping-fast"&gt;&lt;/i&gt; &lt;span&gt;Free Shipping&lt;/span&gt; &lt;p&gt;Free Shipping for all US order&lt;/p&gt; &lt;/div&gt; &lt;!--services-box----------&gt; &lt;div class="services-box"&gt; &lt;i class="fas fa-headphones-alt"&gt;&lt;/i&gt; &lt;span&gt;Support 24/7&lt;/span&gt; &lt;p&gt;We support 24h a day&lt;/p&gt; &lt;/div&gt; &lt;!--services-box----------&gt; &lt;div class="services-box"&gt; &lt;i class="fas fa-sync"&gt;&lt;/i&gt; &lt;span&gt;100% Money Back&lt;/span&gt; &lt;p&gt;You have 30 days to Return&lt;/p&gt; &lt;/div&gt; &lt;/section&gt; &lt;!--footer----------------------------&gt; &lt;footer&gt; &lt;!--copyright--------------&gt; &lt;span class="copyright"&gt; Copyright 2020 - GoingToInternet &lt;/span&gt; &lt;!--subcribe----------------&gt; &lt;div class="subscribe"&gt; &lt;form&gt; &lt;input type="email" placeholder="Example@gmail.com" required/&gt; &lt;input type="submit" value="Subscribe"&gt; &lt;/form&gt; &lt;/div&gt; &lt;/footer&gt; </span>

Services Box and Footer CSS Code is have given below.

  1. .services{
  2. display: flex;
  3. width: 90%;
  4. justify-content: center;
  5. align-items: center;
  6. flex-wrap: wrap;
  7. margin: auto;
  8. }
  9. .services-box{
  10. display: flex;
  11. flex-direction: column;
  12. justify-content: center;
  13. align-items: center;
  14. border: 1px solid rgba(0,0,0,0.1);
  15. min-width: 250px;
  16. padding: 20px;
  17. margin: 15px;
  18. flex-grow: 0.7;
  19. }
  20. .services-box i{
  21. color: #0b9d8a;
  22. font-size: 2rem;
  23. margin: 15px;
  24. }
  25. .services-box span{
  26. color: #222222;
  27. font-weight: 600;
  28. letter-spacing: 0.5px;
  29. font-size: 1rem;
  30. }
  31. .services-box p{
  32. color: #878787;
  33. margin: 0px;
  34. font-size: 0.9rem;
  35. }
  36. footer{
  37. display: flex;
  38. justify-content: space-around;
  39. align-items: center;
  40. padding: 10px;
  41. border-top: 1px solid rgba(0,0,0,0.1);
  42. flex-wrap: wrap;
  43. margin-top: 20px;
  44. }
  45. .copyright{
  46. font-size: 0.9rem;
  47. color: #4e4e4e;
  48. letter-spacing: 1px;
  49. }
  50. .subscribe input{
  51. width:240px;
  52. height: 43px;
  53. padding: 0px 20px;
  54. border: 1px solid rgba(0,0,0,0.1);
  55. outline: none;
  56. box-shadow: 2px 2px 30px rgba(0,0,0,0.05);
  57. }
  58. .subscribe input[type="submit"]{
  59. width:120px;
  60. background-color: #0b9d8a;
  61. color: #ffffff;
  62. margin: 0px 5px;
  63. }

Making Navigation Fix When Scroll

JavaScript Code For Fix Navigation

  1. /*--For-make-Menu-responsive------------*/
  2. $(document).ready(function(){
  3. $('.toggle').click(function(){
  4. $('.toggle').toggleClass('active')
  5. $('.navigation').toggleClass('active')
  6. })
  7. });

CSS Code For Fix Navigation

  1. .fix-nav{
  2. width:100%;
  3. position: fixed;
  4. top: 0px;
  5. left: 0px;
  6. background-color: #ffffff;
  7. box-shadow: 2px 2px 30px rgba(0,0,0,0.05);
  8. z-index: 102;
  9. }

Making Website Responsive
Make Website Responsive CSS

 Side Login and Registration Form CSS Code is have given below.

  1. .toggle{
  2. display: none;
  3. }
  4. @media(max-width:1010px){
  5. nav{
  6. position: relative;
  7. }
  8. .navigation{
  9. height: 80px;
  10. }
  11. .fix-nav{
  12. height: 80px;
  13. }
  14. .menu{
  15. position: absolute;
  16. top: 110px;
  17. left: 0px;
  18. background-color: #ffffff;
  19. border-bottom: 4px solid #0b9d8a;
  20. width: 100%;
  21. padding: 0px;
  22. margin: 0px;
  23. z-index: 102;
  24. flex-direction: column;
  25. display: none;
  26.  
  27. }
  28. .fix-nav .menu{
  29. top: 80px;
  30. }
  31. .menu li{
  32. width:100%;
  33. margin: 0px;
  34. padding: 0px;
  35. }
  36. .navigation .menu li a{
  37. width:100%;
  38. height: 50px;
  39. display: flex;
  40. align-items: center;
  41. margin: 0px;
  42. padding: 25px;
  43. border: 1px solid rgba(0,0,0,0.03);
  44. }
  45. .sale-lable{
  46. display: none;
  47. }
  48. .toggle{
  49. display: block;
  50. }
  51. .toggle:before{
  52. content: '\f0c9';
  53. font-family: fontAwesome;
  54. line-height: 30px;
  55. z-index: 1;
  56. cursor: pointer;
  57. }
  58. .toggle.active:before{
  59. content: '\f00d';
  60. }
  61. .navigation.active .menu{
  62. display: block;
  63. }
  64. .full-slider-box,
  65. .banner-box{
  66. height: 45vh;
  67. }
  68. .f-slider-text span,
  69. .banner-text span{
  70. font-size: 0.9rem;
  71. }
  72. .f-slider-text strong,
  73. .banner-text strong{
  74. font-size: 2rem;
  75. line-height: 40px;
  76. }
  77. .search-input{
  78. height: 60px;
  79. }
  80. .search-input input,
  81. .search-cancel{
  82. font-size: 1.4rem;
  83. }
  84. .sale-box{
  85. height: 200px;
  86. }
  87. }
  88. @media(max-width:600px){
  89. .navigation{
  90. padding: 10px;
  91. }
  92. .f-slider-text strong,
  93. .banner-text strong{
  94. font-size: 1.2rem;
  95. line-height: 25px;
  96. }
  97. .full-slider-box,
  98. .banner-box{
  99. height: 30vh;
  100. }
  101. .f-slider-text span,
  102. .banner-text span{
  103. font-size: 0.8rem;
  104. }
  105. .f-slider-btn,
  106. .banner-btn{
  107. width:120px;
  108. height: 30px;
  109. font-size: 0.8rem;
  110. }
  111. .feature-heading h2{
  112. font-size: 1.2rem;
  113. }
  114. .feature-box{
  115. width:120px;
  116. height: 120px;
  117. }
  118. .new-arrival strong,
  119. .feature-heading strong{
  120. font-size: 1.2rem;
  121. }
  122. .new-arrival p,
  123. .feature-heading p{
  124. font-size: 0.8rem;
  125. text-align: center;
  126. }
  127. .sale-box{
  128. width:100%;
  129. height: 180px;
  130. }
  131. .sale{
  132. width: 100%;
  133. }
  134. .services{
  135. width:100%;
  136. }
  137. .services-box{
  138. width:100%;
  139. }
  140. .copyright{
  141. margin: 20px 0px;
  142. text-align: center;
  143. }
  144. .subscribe{
  145. width:100%;
  146. }
  147. .subscribe form{
  148. flex-wrap: nowrap;
  149. display: flex;
  150. width:100%;
  151. }
  152. .subscribe input{
  153. width:100%;
  154. flex-grow: 1;
  155. }
  156. .login-form,
  157. .sign-up-form{
  158. width:90%;
  159. }
  160. }


Comments

First