Ecommerce Electronics Product Page HTML, CSS & JS || Step-By-Step Tutorial - Part 5

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 10

  • @codeharvestguide
    @codeharvestguide  2 месяца назад +1

    Hi passionate coders,
    Unfortunately, the change we added in CSS was not included in the video, so here is the explanation:
    In your product card class '.product-card', you'll need to set the width and height to 0, then create a new selection called '.product-card.active' and add the width and height properties of the product card which are: 'width: 260px; height: 379px'. This ensures only the product cards that have the active class added (through JavaScript) are displayed.
    Thanks for watching the video, happy coding! 🙌

  • @GreenField-p7q
    @GreenField-p7q 2 месяца назад

    It is very helpful. Thanks

  • @codeharvestguide
    @codeharvestguide  2 месяца назад

    The full playlist of the Product Page Series can be found here:
    ruclips.net/p/PL0lX0bJqJuTGGrjBqypE8mHHdCIFY49mo&si=7ue7NJpWNbF9PTrX
    Welcome to Part 5 of the eLife E-commerce Electronics Product Page! This is the fifth part of the WebSeries, where we use JavaScript to create spacing between each product card, as using the CSS property 'justify-content: space-between' can cause unnecessarily disruptive outcomes . The function of the slideshow and adding items in a user's cart when they click on the blue 'Add To Cart' button, and when a user clicks on the heart button to add an item to their wishlist will be shown in part 6, so stay tuned!
    Happy coding! 🙌

  • @Nguyen-The-Hung
    @Nguyen-The-Hung 2 месяца назад

    Code CSS for add 'active'?

    • @codeharvestguide
      @codeharvestguide  2 месяца назад +1

      Oh apologies, it seems the video has not included the CSS explanation, so here is what changed in CSS:
      So for your product card class '.product-card', you'll need to set the width and height to 0, then create a new selection called '.product-card.active' and add the width and height properties of the product card which are: 'width: 260px; height: 379px'. This ensures only the product cards that have the active class added (from JavaScript) are displayed. I hope this answer satisfies you!
      Happy coding! 🙌

  • @Nguyen-The-Hung
    @Nguyen-The-Hung 2 месяца назад

    Part 6 plesea?

    • @codeharvestguide
      @codeharvestguide  2 месяца назад +1

      @@Nguyen-The-Hung Hi, the video for part 6 has been made, so it will be posted very soon, stay tuned! 🙌

  • @newshortschannel1
    @newshortschannel1 2 месяца назад

    madam ?