How to get fixed table columns width?

Try using max-width:100px; or max-height:100px; This will let your column expand maximum upto the width you set. Please, Mark this as answered if this is helpful..

That didn't work but thank you for this answer because I never known bout max-width b4. I included this on css and put it on my question so you have better idea of my css for a table column – Malcolm Pickup Nov 21 at 5:18 put a DIV inside your TD and make the widht of TD fixed upto some percentage.. and then Try using this style to TD .. ` { max-height: 60px; overflow: hidden; }` – tesh Riziya Nov 21 at 5:33 got it working, needed to include min-width, because of you informing me of max-width which I havn't heard about which also got me aware of min-width, you deserve to get best answer, thanks :) – Malcolm Pickup Nov 21 at 5:41 @Malcolm Thanks buddy – tesh Riziya Nov 21 at 5:43 @Malcolm, additional note: max-height and width is not supported in IE6 and IE7. – jerjer Nov 21 at 5:45.

You can use width attribute in td tag or you can use style attribute or you can define it in css file . Tdstyle{ width:100px; } and specify the class in td tag.

No no no, I know how to use css, my problem is that if I just set a width attribute, if I have a large piece of text in a 120px column in a table with other columns which are 120px, then the column with the text goes wider and the other columns shrink. I don't want that, I want all columns to be 120px and no more or less – Malcolm Pickup Nov 21 at 5:14 Are you setting height also? – M S Nov 21 at 5:20 no but height can vary, its just width as table is shown on pop up window 550px by 550px – Malcolm Pickup Nov 21 at 5:25 setting width attribute it tag is working fine for me.

Its not overlapping the other column. Instead, the height of the column is increased. Im not sure why its not working for you.

Which browser are you using.? What do you mean by '550px by 550px'. What are these 2 values? – M S Nov 21 at 5:25 don't matter got it working :) thanks – Malcolm Pickup Nov 21 at 5:39.

If setting td's width to a fix value does not work for you: .. or ... Wrapped the content to a div and set the overflow as hidden: ... Css class will be much efficient and easy to maintain though: . Col120 { width:120px; overflow:hidden;} content...

You can wrap the contents of the in another tag with width and overflow:hidden. For example: Lorem ipsum dolor And the CSS: . Fifty p { overflow:hidden; width:50px; }.

Remember that tables should be used exclusively for tabular data and should not be used for page layout. Google "tableless layout" for a number of examples of why tables aren't suited for page layout and what alternatives are available. – Brandon Gano Nov 21 at 5:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions