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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:11:54+00:00 2026-06-09T08:11:54+00:00

I have a problem choosing the table cells. I defined my table cells to

  • 0

I have a problem choosing the table cells.

I defined my table cells to have the following measurements:

 cell 1: 220px
 cell 2: 315px
 cell 3: 265px
 cell 4: 200px
 Adds to 1000px

The measurements that I get when opening the table in a browser:

     cell 1: 190px
     cell 2: 264px
     cell 3: 222px
     cell 4: 168px
     Adds to 844px

Note that I dont set the width of the table. I also have no other elements on the page apart from that table. Why does that happen?

  • 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-09T08:11:56+00:00Added an answer on June 9, 2026 at 8:11 am

    Try this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
       <head>
          <style type="text/css" media="screen">
             table { border-collapse: collapse; table-layout: fixed }
             td { padding: 0; border: 1px solid black }
          </style>
       </head>
       <body>
          <table>
             <col width="220" />
             <col width="315" />
             <col width="265" />
             <col width="200" />
             <tbody>
                <tr>
                   <td>col 1</td>
                   <td>col 2</td>
                   <td>col 3</td>
                   <td>col 4</td>
                </tr>
             </tbody>
          </table>
       </body>
    </html>
    

    col is legal element used to layout the table cells.

    In the above examples Firebug will show the cells’ width with the desired size in pixels minus 1px for borders (which will collapse). The entire table will be exactly 1000px wide.

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

Sidebar

Related Questions

I have a problem in choosing the right method to accomplish my goal. I'm
I am having a problem choosing the variable types for database table. Can someone
I have this problem: I am choosing a file from JFileChooser and if i
I have a table with variable-width cells, and I want to give the browser
The Problem I have a table that's about 2 million rows (at 115 MB)
When defining datatypes in a database, I have always had a problem with choosing
I am trying to figure out following problem. I have a simple rich:select <rich:select
I have problem with http://abfoodpolicy.com/ . In IE 8 and 9 the right sidebar
I have problem with my query on C, I’m using the oci8 driver. This
I have problem with repopulating form_upload after validation. Other input fields or selectboxes are

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.