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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:29:58+00:00 2026-05-16T06:29:58+00:00

I have an HTML table with 3 columns and amount of text in each

  • 0

I have an HTML table with 3 columns and amount of text in each column is variable. I would like to set some rules on the layout of the table but Im not sure how to do that in CSS.

Title   | Author | Publisher

The default ratio is 50%, 25%, 25% for each column. The goal is to keep everything on a single line if possible. The author and publisher columns have a higher priority to be single lined that the title column.

UPDATE: The problem is when the amount of text exceeds the width of a single line.

  • 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-16T06:29:58+00:00Added an answer on May 16, 2026 at 6:29 am

    You need to change the percentages to defined widths(px). Define the width of the table, as well as give each <TD> it’s own width definition that together equal the width of the table. Best way would be to create a CSS class for both, and just assign the class to each element. Something like this, very general obviously.

    .table{
      width:500px;
    }
    
    .tablecell_1{
      width:200px;
    }
    
    .tablecell_2{
      width:200px;
    }
    
    .tablecell_3{
      width:100px;
    }
    
    <table class="table">
      <tr>
        <td class="tablecell_1">
        </td>
        <td class="tablecell_2">
        </td>
        <td class="tablecell_3">
        </td>
      </tr>
    </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a HTML table where each row has two columns. First column is
I have an HTML table with three columns. In the right most column, I
I have an html table in an aspx page (C#) that has columns like
I have created an HTML table with two columns. I want the first column
I have an HTML table that looks like this: ------------------------------------------------- |Column 1 |Column 2
I have a simple HTML Table (10 columns x 500 rows). When the page
I am having a HTML table with many rows. I have seven columns in
I have a table in HTML which has three columns i.e Error - User
I have an HTML table with one column being email addresses; spambot issues aside,
I have a HTML table like this: <table border=1> <tbody> <tr> <td><a href=# class=delete>DELETE

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.