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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:00:52+00:00 2026-05-25T10:00:52+00:00

I have a HTML table & I am trying to make its height equal

  • 0

I have a HTML table & I am trying to make its height equal to the middle td elements height. BTW sorry if this is flagged as a repost of my other question, but I have simplified my HTML so it will be easier for someone to read my code & help me. PS: it would be interesting to know if there’s a better way to acheive what I am trying to do without using tables.

Do you know how I can do this(using pure CSS or using CSS & javascript)?

If you look at my JSFiddle you will see my problem really easy(it has pictures & everything), the table height is only meant to be about 300px not 700 or so.

http://jsfiddle.net/aFt2J/

<html>
<head>
    <style type="text/css">
    <!--
        html, body, div, form, fieldset, legend, label, img {  margin: 0;  padding: 0;  }  table {  border-collapse: collapse;  border-spacing: 0; }  th, td {  text-align: left;  }  h1, h2, h3, h4, h5, h6, th, td, caption { font-weight:normal; }  img { border: 0; } 

        body { background-color: red; }

        .contentTable        { height: inherit; }
        .contentRow          { height: inherit; }
        .tableTopPanel       { height: 6.25%; }
        .tableBottomPanel    { height: 6.25%; }
        .tableLeftPanel      { width: 6.25%; padding: 0; margin: 0; }
        .tableRightPanel     { width: 6.25%; padding: 0; margin: 0; }
        .tableCentrePanel    { background-color: #FFFFFF; }
        .pageContent         { border-color: #99CCFF; border-width:thin; border-style:solid; border-right-width:thick;
                               border-bottom-width:thick; padding-top: 0.5em; border-top: 0; }

    -->
    </style>

</head>

<body>

    <div style="padding-left: 21%; width: 58%;">

        <!-- Top of Column -->
        <div class="tableTopPanel"><img src="http://www.kaz.net.au/images/temp/contentTopBk.png" width="100%" alt=""/></div>
        <table class="contentTable">
            <tr class="contentRow">
                <!-- Left Side of Column -->
                <td class="tableLeftPanel"><img src="http://www.kaz.net.au/images/temp/contentLeftBk.png" alt=""/></td>
                <!-- Middle of Column: where all the text is. The table height should equal this td elements height -->
                <td class="tableCentrePanel">
                    <img class="pageHeading" src="http://www.kaz.net.au/images/temp/coursesHeading2.png" width="100%" alt=""/>
                    <div class="pageContent">
                        <p>Kazcare cooperates with <a href="http://www.weaillawarra.com/index.html">WEA Illawarra</a> to offer a range of educational courses.</p>
                        <p>Some of the courses held at Kazcare Education Facilities include: </p>

                        <br/>
                        <p class="a">
                            To view the full range of WEA Illawarra courses held at KazCare please visit <a href="http://enrol.weaillawarra.com/index.html">WEA Illawarra Courses</a>.
                        </p>
                    </div>
                </td>
                <!-- Right Side of Column -->
                <td class="tableRightPanel"><img src="http://www.kaz.net.au/images/temp/contentRightBk.png" alt=""/></td>
            </tr>
        </table>
        <!-- Bottom of Column -->
        <div class="tableBottomPanel"><img src="http://www.kaz.net.au/images/temp/contentBottomBk.png" width="100%" alt=""/></div>

    </div>

</body>
</html>
  • 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-05-25T10:00:53+00:00Added an answer on May 25, 2026 at 10:00 am

    Have you considered not using tables and using an old css method to achieve rounded corners + drop-shadows with background images. Ditching tables will bring the line count dramatically and is better practice.

    See jsfiddle to see rough example I created for you. Please note you will need to chop the background images much better.

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

Sidebar

Related Questions

I have an HTML table that looks like this: ------------------------------------------------- |Column 1 |Column 2
This one is weird, I have a page that consists of a html table
I am trying to render HTML select box. I have 3 Div's inside table
I'm trying to achieve table similar to this using css/html only. Is it possible
I am trying to make a table in HTML. When I resize the window
I have an html table <table border=0 width=100%> <tr class=headerbg> <th width=5%> No </th>
I have an html table which i bind data dynamically on the server side
I have an HTML table with several columns and I need to implement a
I have a very specific html table construct that seems to reveal a Gecko
I have to build an HTML table that shows data for users versus pages

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.