Learn how to a build a cloud-first strategyRegister Now


table css set different td widths for different rows

Posted on 2012-09-12
Medium Priority
Last Modified: 2012-09-13

I have this form with 3 columns:

I've attached a snapshot. I wish to change the width of the input checkbox of the row that has the Terms of Agreement. The input checkbox is too wide. Can I set the width of some TDs for, say, row 5, 11 differently than the others using CSS?

Thank you,
Question by:Victor Kimura

Assisted Solution

dnzone88 earned 1000 total points
ID: 38393512
I Think what you need is colspan. Please refer to http://www.w3schools.com/tags/att_td_colspan.asp for more information on colspan.

Hope this help.
LVL 84

Accepted Solution

Dave Baldwin earned 1000 total points
ID: 38393522
You can not set individual <td>s to different widths but as @dnzone88 said, you can use 'colspan' to group them to get some of that effect.

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question