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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:19:06+00:00 2026-06-02T03:19:06+00:00

<table border=1> <tr><td><input type=text></td><td><input type=text></td><td><input type=text></td><td><input type=text></td></tr> <tr><td><input type=text></td><td><input type=text></td><td><input type=text></td><td><input type=text></td></tr> <tr><td><input type=text></td><td><input

  • 0
<table border="1">
    <tr><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td></tr>
    <tr><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td></tr>
    <tr><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td></tr>
    <tr><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td></tr>
    <tr><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td></tr>
    <tr><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td></tr>
    <tr><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td><td><input type="text"></td></tr>
</table>

http://jsfiddle.net/BUadD/

I would like simply set witdh for input. For all input in first columns i would like for example 30px, for second 50px, for third 20px and for last 40 px.
Is possible this with CSS or jQuery for all? I must add this for each input?

  • 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-02T03:19:08+00:00Added an answer on June 2, 2026 at 3:19 am

    The CSS below will make the first column of inputs 30px wide, the second 50px, the third 20px and the last 40px. As noted by Rory, selectors do not work as expected in all browsrs cough IE.

    td:first-child input[type="text"] {
        width: 30px;
    }
    td:nth-child(2) input[type="text"] {
        width: 50px;
    }
    td:nth-child(3) input[type="text"] {
        width: 20px;
    }
    td:last-child input[type="text"] {
        width: 40px;
    }
    

    ​
    With jQuery, you could emulate this anyway, see an example here: http://jsfiddle.net/BUadD/2/

    $('td:first-child input[type="text"]').css('width', '30px');
    $('td:nth-child(2) input[type="text"]').css('width', '50px');
    $('td:nth-child(3) input[type="text"]').css('width', '20px');
    $('td:last-child input[type="text"]').css('width', '40px');
    

    And it worked in IE9 for me.

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

Sidebar

Related Questions

I have this input text: <html><head><meta http-equiv=content-type content=text/html; charset=utf-8></head><body><table cellspacing=0 cellpadding=0 border=0 align=center width=603>
I have this fiddle at: http://jsfiddle.net/radi8/EwQUW/33/ Notice that the initial table is defined is:
I have created a php table like so: echo <table border = '0' cellpadding
So far, I'm doing this programmatically using VB.net/ASP.net: <table cellspacing=0 cellpadding=4 border=0 style=border- width:0px;width:100%;border-collapse:collapse;font-size:12px;>
I would like to make the table with the three images fit inside the
<html> <head> <meta http-equiv=Content-Type content=text/html; charset=UTF-8> <title>Login Page</title> </head> <br><br><br><br> <body style=background-color: cornflowerblue >
CSS table tr {border-bottom:1px solid #008999} HTML <table width=100% cellspacing=0 cellpadding=0> <thead> <tr> <th
How can I make a table with a round border, similar to the photo
I want to create a html table with a 1pt black outer border and
I have an HTML table with collapsed and adjacent borders and a standard border

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.