Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8971459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:57:40+00:00 2026-06-15T17:57:40+00:00

I have the working demo is in this link . The markup is something

  • 0

I have the working demo is in this link. The markup is something like this but it is only for first row. In the demo link I have given all the codes

<div id="content">
  <ul class="products">
    <li class="product pro first">
      <a href="#">
          <span class="onsale">Sale!</span>
        <img width="100" height="140" title="battlefield" alt="battlefield" class="attachment-shop_catalog wp-post-image" src="http://web-vassets.ea.com/Assets/Resources/Image/FeaturedGame/battlefield-bad-company-2-thumb.png?cb=1340391602">
        <h3>Lorem Ipsum is simply dummy </h3>
          <span class="price"><span class="strike-through"><span class="striked-text"><span class="amount">$&nbsp;67.00</span></span></span> <ins><span class="amount">$&nbsp;23.00</span></ins></span>
      </a>
        <a class="add_to_cart_button button product_type_simple" data-product_id="185" rel="nofollow" href="#">Add to cart</a>
    </li>

    <li class="product pro">
      <a href="#">
          <span class="onsale">Sale!</span>
        <img width="100" height="140" title="battlefield" alt="battlefield" class="attachment-shop_catalog wp-post-image" src="http://web-vassets.ea.com/Assets/Resources/Image/FeaturedGame/battlefield-bad-company-2-thumb.png?cb=1340391602">
        <h3>Battle Field</h3>
          <span class="price"><span class="strike-through"><span class="striked-text"><span class="amount">$&nbsp;67.00</span></span></span> <ins><span class="amount">$&nbsp;23.00</span></ins></span>
      </a>
        <a class="add_to_cart_button button product_type_simple" data-product_id="185" rel="nofollow" href="#">Add to cart</a>
    </li>

    <li class="product pro last">
      <a href="#">
          <span class="onsale">Sale!</span>
        <img width="100" height="140" title="battlefield" alt="battlefield" class="attachment-shop_catalog wp-post-image" src="http://web-vassets.ea.com/Assets/Resources/Image/FeaturedGame/battlefield-bad-company-2-thumb.png?cb=1340391602">
        <h3>Battle Field</h3>
          <span class="price"><span class="strike-through"><span class="striked-text"><span class="amount">$&nbsp;67.00</span></span></span> <ins><span class="amount">$&nbsp;23.00</span></ins></span>
      </a>
        <a class="add_to_cart_button button product_type_simple" data-product_id="185" rel="nofollow" href="#">Add to cart</a>
    </li>
</div>

Here you can see one row has 3 column and another row has 3 columns. Now every content section has a add to cart button at the bottom of the page. Now I wanted to make all the buttons to keep at the bottom of my content and it will not mind whatever the length of text will be. To do that I just used some jQuery stuff here. Now in that demo you can see it is taking the maximum height of one element and setting the css according to it. But I want to keep that in every row. You can see in the first row there is ess content and in the second row there is more content. So in the second row it is okay to put the button at the bottom pare and it is taking the max height for that row.But in first there should be something like that. There it should check the max height content and should place the button according to that. So can someone tell me how to do that for every row?
Sorry to tell you that I can’t change my markup. It will be remain the same

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:57:42+00:00Added an answer on June 15, 2026 at 5:57 pm

    in jQuery just use this

    (function($) {
      function normalizeHeight(items) {
        var maxHeight = 0, itemHeight;
    
        items.each(function() {
          itemHeight = $(this).height();
          if (itemHeight > maxHeight) {
            maxHeight = itemHeight;
          }
        }).height(maxHeight + 'px');
      }
    
      $(document).load(function(){
        var itemsPerRow = 3,
            items = $('ul.products li'),
            rows = items.length / itemsPerRow, 
            r, min, max;
    
        if (rows < 1) rows = 1;
    
        for(r = 0; r < rows; r++) {
          min = itemsPerRow * r,
          max = min + itemsPerRow;
          normalizeHeight(items.slice(min, max));
        }
      });
    });</script>
    

    This will make all the li’s into equal height and it will check the tallest li in the row and make another i’s in that roe to that height. Hope it will work for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with a demo of two sortable jquery lists... but have a problem
I have been working all night and yesterday on this header section in css,
I have been working on a demo project all day and everything went just
I have working registration script the only problem is that i do not know
Have been working on this question for a couple hours and have come close
I have a very simple demo working that uses Webkit transforms and transitions for
I've been at this for hours but it just isn't working. I'm trying to
I have been trying to get a basic reorderlist working following this guide ->
I have been working with jquery-ui's sortable demo for a while. On looking closely,
I have a filtered list with dividers similar to this link. I have mine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.