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 8730973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:07:59+00:00 2026-06-13T09:07:59+00:00

I have my html mark up something like this <table> <tr> <td> <img width=100

  • 0

I have my html mark up something like this

  <table>
    <tr>
      <td>
        <img width="100" height="140" title="battlefield" alt="battlefield" class="attachment-shop_catalog wp-post-image" src="images/img-1.jpg">
        <h3>Battle Field dsvadv dsadhjkba dsakjdbsa</h3>
        <span class="price"><del><span class="amount">$&nbsp;67.00</span></del> <ins><span class="amount">$&nbsp;23.00</span></ins></span>
        <a href="#">Add to cart</a>
      </td>
      <td>
        <img width="100" height="140" title="battlefield" alt="battlefield" class="attachment-shop_catalog wp-post-image" src="images/img-2.jpg">
        <h3>Battle Field </h3>
        <span class="price"><del><span class="amount">$&nbsp;67.00</span></del> <ins><span class="amount">$&nbsp;23.00</span></ins></span>
        <a href="#">Add to cart</a>
      </td>
    </tr>
  </table>

and the css is like this

<style type="text/css">
table tr td {
  vertical-align: top;
  border-collapse: collapse;
  width: 100px;
}
td img {
  padding: 10px;
  border: 1px solid #ccc;
}
td h3 {
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  margin: 0;
}
td span {
  display: inline-block;
  font-size: 12px;
}
td a {
  clear: both;
  display: block;
  vertical-align: bottom;
  margin: 20px 0 0 0;
}
</style>

After this my layout is something like this

current layout is like this

but I want my layout should like this

i want my layout in this type

Please help me out.

NOTE

The title which is within <h3>...</h3> text length may be different in different products. So the price should come just below the title and the buttons should come in a straight row ie just bottom of the content just like the second reference image.

  • 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-13T09:08:00+00:00Added an answer on June 13, 2026 at 9:08 am

    ………..Live demo…………….

    Hi now this is possible throw css as now you can create two div and used to position than it’s possible and define your tr height 100%

    now you can write css as like this

    Css

    table tr{
    height:100%;
    }
    table tr td {
      vertical-align: top;
      border-collapse: collapse;
      width: 100px;
      height:100%;
    }
    td img {
      padding: 10px;
      border: 1px solid #ccc;
    }
    td h3 {
      font-size: 12px;
      line-height: 22px;
      text-align: center;
      margin: 0;
    }
    td span {
      display: inline-block;
      font-size: 12px;
    }
    td a {
      clear: both;
      display: block;
      vertical-align: bottom;
      margin: 20px 0 0 0;
    }
    
    
    
    .order{
    position:relative;
      border:solid 1px red;
      height:100%;
      margin-bottom:20px;
    }
    .add_to_cart{
    background:yellow;
      position:absolute;
      left:0;
      right:0;
      bottom:0;
    }
    

    HTML

    <table>
        <tr>
          <td>
            <div class="order">
            <img width="100" height="140" title="battlefield" alt="battlefield" class="attachment-shop_catalog wp-post-image" src="http://www.gravatar.com/avatar/f20d2122fec97d8544bdbb998f5da742?s=32&d=identicon&r=PG">
            <h3>Battle Field dsvadv dsadhjkba dsakjdbsa</h3>
            <span class="price"><del><span class="amount">$&nbsp;67.00</span></del> <ins><span class="amount">$&nbsp;23.00</span></ins></span>
            <a href="#" class="add_to_cart">Add to cart</a>
              </div>
          </td>
          <td>
            <div class="order">
            <img width="100" height="140" title="battlefield" alt="battlefield" class="attachment-shop_catalog wp-post-image" src="http://www.gravatar.com/avatar/f20d2122fec97d8544bdbb998f5da742?s=32&d=identicon&r=PG">
            <h3>Battle Field </h3>
            <span class="price"><del><span class="amount">$&nbsp;67.00</span></del> <ins><span class="amount">$&nbsp;23.00</span></ins></span>
              <a href="#" class="add_to_cart">Add to cart</a></div>
          </td>
        </tr>
    
    
            <tr>
          <td>
            <div class="order">
            <img width="100" height="140" title="battlefield" alt="battlefield" class="attachment-shop_catalog wp-post-image" src="http://www.gravatar.com/avatar/f20d2122fec97d8544bdbb998f5da742?s=32&d=identicon&r=PG">
            <h3>Battle Field dsvadv dsadhjkba dsakjdbsa</h3>
            <span class="price"><del><span class="amount">$&nbsp;67.00</span></del> <ins><span class="amount">$&nbsp;23.00</span></ins></span>
            <a href="#" class="add_to_cart">Add to cart</a>
              </div>
          </td>
          <td>
            <div class="order">
            <img width="100" height="140" title="battlefield" alt="battlefield" class="attachment-shop_catalog wp-post-image" src="http://www.gravatar.com/avatar/f20d2122fec97d8544bdbb998f5da742?s=32&d=identicon&r=PG">
            <h3>Battle Field </h3>
            <span class="price"><del><span class="amount">$&nbsp;67.00</span></del> <ins><span class="amount">$&nbsp;23.00</span></ins></span>
              <a href="#" class="add_to_cart">Add to cart</a></div>
          </td>
        </tr>
      </table>
    

    Live demo

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

Sidebar

Related Questions

I have HTML like this: <div> <a href=>sometext<img src=images/001.jpg /></a> <a href=>sometext<img src=images/002.jpg /></a>
I have HTML like this: <article> <header> <hgroup> <h1>Wk 25 </h1> <h2>(18-06 tot 24-06)</h2>
I have html that looks like this with several items <div class=item> <p class=price>$388.00</p>
I have html markup like this <button id=button1 onclick=alert='yup'></button> and I want to make
I have a javascript array object like {arr = {0:{name:henry,role:user},1:{name:mark,role:admin}} I have a html
I have this html mark up: <td> <label for=fadsf> fadsf</label> </td> <td> <a class=editLink
My goal is to have something like a select option in a HTML form,
I have a Jlabel packed with html. I would like to scroll this content
I have HTML table. I'm looping through table and iterate over each row whose
I have an application in Perl that reads in HTML based mark up and

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.