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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:36:24+00:00 2026-05-28T00:36:24+00:00

Good afternoon in my timezone. I have a table with four tr and each

  • 0

Good afternoon in my timezone.

I have a table with four tr and each tr has four td.

I want to apply different width’s to each td.
For example I want the following:

<tr>
   <td width="20%"/>
   <td width="25%"/>
   <td width="10%"/>
   <td width="45%"/>
</tr>

Is there a way to have just one class that is applied to the tr and inside that class I give a width to each td? Or do I create four different classes each with different width’s ? Something like

.firstTD{
    width:20%; 
} 
.secondTD{
   width:25%; 
} 
.thirdTD{
   width:10%; 
} 
.fourTD{
  width:45%; 
}

This should be supported in internet explorer 6 too.

Thanks in advance.
Best regards

  • 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-28T00:36:25+00:00Added an answer on May 28, 2026 at 12:36 am

    The only way to do it is as you suggested, creating a CSS class for each TD. In any case, the TD’s class attribute would be used only for the first row, as the subsequent ones will inherit the width value.

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

Sidebar

Related Questions

Good afternoon I have a table that has customer id, name, computer, laptop, blah,
Good Afternoon All, I have a table inside a div. The div has a
Good afternoon! I have some doubts about following code. [1] What does the middle
Good Afternoon in my timezone. I have a simple question. I have an ArrayList
Good afternoon in my timezone. I want to compare two dates , one of
Good Afternoon, I have a html aspx page that has many many div elements.
Good Afternoon all , I have downloaded data from a web service and im
Good afternoon, I have a quick 'top level' question regarding the usage of Facebook
Good Afternoon, A customer has provided me with a spreadsheet file his team uses
Good afternoon to all, I have this scenario: I am using SQL Server 'BulkInsert'

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.