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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:20:41+00:00 2026-05-11T06:20:41+00:00

I need to create a table on a web page that has two rows.

  • 0

I need to create a table on a web page that has two rows. The table needs to fill the entire page so I have set the height and width of the table to 100% in the CSS stylesheet and the height of the HTML and body to 100% too.

However, I need to top row of the table to be exactly 100 pixels in height and the second row to expand to fit the remainder of the table. When I set the height of the top row, it doesn’t work.

Is this behavior possible? I tried the following but it doesn’t work.

<table style='border-collapse:collapse;height:100%;width:100%;'>   <tr>     <td style='border:solid 1px black;height:100px'>1</td>     <td style='border:solid 1px black'>2</td>   </tr>   <tr>     <td style='border:solid 1px black'>3</td>     <td style='border:solid 1px black'>4</td>   </tr> </table> 

Edit: I am using tabular data and specifically want to use a table, not divs. The sample above is to simplify a table with around 20 columns.

Edit 2: I have found the issue. It is the doctype definition in the HTML (added by Visual Studio). After removing…

…it works perfectly. So my new question is, is this OK to do or is there a correct way to do it with the DOCTYPE?

  • 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. 2026-05-11T06:20:42+00:00Added an answer on May 11, 2026 at 6:20 am

    Without CSS this works:

    <html>   <body>     <table height='100%' width='100%' border='1'>       <tr height='100'>         <td>This is item text.</td>       </tr>        <tr>         <td>This is item text 2.</td>       </tr>     </table>   </body> </html> 

    So it is possible, I’ll try it now with CSS.

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

Sidebar

Ask A Question

Stats

  • Questions 81k
  • Answers 81k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Because your newly allocated stack is not DWORD aligned. Change… May 11, 2026 at 4:28 pm
  • Editorial Team
    Editorial Team added an answer In IE6 and 7 it also appears to be 20.… May 11, 2026 at 4:28 pm
  • Editorial Team
    Editorial Team added an answer Let me ask you a question: does it make sense… May 11, 2026 at 4:28 pm

Related Questions

I'm building a heavily CRUD based ASP.NET website and I've got to the phase
I am working on a Web based organisation tool. I am not aiming the
This should be pretty straight forward but I can't seem to get my newbie
I have a site that I am currently working on in ASP.NET 2.0 using

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.