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

  • SEARCH
  • Home
  • 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 8955479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:34:06+00:00 2026-06-15T14:34:06+00:00

I have my markup something like this. <ul class=products> <li class=product pro first> <a

  • 0

I have my markup something like this.

  <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 text of the printing and typesetting industry. Lorem</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 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>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 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>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>
  </ul>

The live demo example can be seen here http://tinkerbin.com/7dnpFPL3. You can see there in a row three columns. At the bottom of every column there is a button called Add To Cart. Now as you can see in every column there is different length of contents. This content length is pushing the button to the bottom part. The last two columns have less content that’s why the button is at the middle of the content. Now I want as like the first content the button position of the last two content should be at the bottom of every content div. Whatever the length of the content it will not effect the button position. The button should always at the bottom of the content. I can’t give any fixed height of the content. Becacuse the length of content may very in each column.I can’t change the markup to use table instead of ul and li. The markup for ul and li is compulsory. Inside them I can change the class name or markup. So can someone tell me how to place the buttons at the bottom of content? Any help and suggestions will be appreciable.

I want the output something like this
enter image description here

  • 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-15T14:34:07+00:00Added an answer on June 15, 2026 at 2:34 pm

    I would use javascript to make the h3 elements containing the item titles all as tall as the longest title.

    Fiddle: http://jsfiddle.net/633nc/

    Javascript

        function makeElementsSameHeight(element){
            $element = $(element);
            // check if element exists
            if (!$element.length){
                return false;
            }           
            // get number of elements
            numberElements = $element.length;
            lengthArray = [];
            for (i=0;i<numberElements;i++){
                //put height of each element into an array
                lengthArray.push( $element.eq(i).height() );
            }
            
            // calculate maximum height
            largestHeight = Math.max.apply(Math, lengthArray);
            // apply maximum height to all elements
            $element.css('min-height',largestHeight + 'px');;
        }
        
        makeElementsSameHeight('.product h3');
    

    Mr. Alien is right about your markup being a mess. You should clean it up before worrying about this kind of thing.

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

Sidebar

Related Questions

I have markup that looks like this <div class=myDiv><ul> <li><img src=img1.jpg/></li> <li><img src=img1.jpg/></li> .
I have this markup: <ul><li id=link-notifications> <ul class=list-notifications style=display:none> <li><a href=/link/to>Item 1</a></li> </ul> </li>
I have a markup like this: <div class=sentence> <ul title=list 3> <li> <ul title=list
I currently have the following HTML markup: <td class=title> <img src=my-image.png class=thumbnail /> <span
I have my html mark up something like this <table> <tr> <td> <img width=100
I have this markup: <div id=slider1> <div class=ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all> <a style=left:
I have html markup like this <button id=button1 onclick=alert='yup'></button> and I want to make
I have my markup like this (for argument's sake) <div id=content></div> <div id=layout></div> <div
i have a markup which look like this: <h3>Paragraf3-dummytext</h3> <p> <a name=paragraf3> Quisque id
I have the working demo is in this link . The markup is something

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.