Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 9th, 2006, 08:54 PM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default Fixing <TD> size.

Hi,

How can i fix <td> size to perticular width irrespecitve to it's content?

Thanks in advance.

Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old March 10th, 2006, 03:57 AM
Friend of Wrox
 
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Don't know what irrespective means because I'm dutch but maybe this helps

Code:
/*css document*/
td{
  width:50%;
}
__________________________________________________ ________
This is my junk I'm gona eat it
 
Old March 10th, 2006, 03:40 PM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

irrespective means "no matter" what the content is.

Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
 
Old March 10th, 2006, 04:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Basically no. The "rubberribbonness" is a feature of tables. While you may pull it off with nested DIVs and overflow: hidden, maybe it's better to ask yourself if a table really is the element you want to use.

I'm assuming it isn't a data table because a data table with hidden data seems purposeless. :D

--
http://yupapa.com
 
Old April 28th, 2006, 07:41 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

It is data table, in one column i m showing hyperlink (<td sytle='cursor:pointer'>xxx</td>) now if content of td gets lengthy the table dosen't break the content and hence it looks awkward.

Any idea?

Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Change data of <TD> austinf Javascript 3 July 28th, 2006 05:32 AM
line IN BETWEEN <td> cells (no border)? crmpicco HTML Code Clinic 2 August 31st, 2005 08:24 AM
change <td> value onClick crmpicco Javascript How-To 2 August 23rd, 2005 07:31 AM
XML into <td> crmpicco Classic ASP Basics 4 February 11th, 2005 09:57 AM
using variables within <td> tags handyman Javascript How-To 3 June 15th, 2004 11:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.