Jump to content

Help to fix the width of a column/table


coder500

Recommended Posts

How can I fix the width of a table?

I am using style sheet. Its content is as follows.



#leftBorder { 
height: 100%; 
width: 125px; 
left: 0px; 
top: 0px; 
padding: 0px; 

background-position: top; 
background-image: url(images/slicepx6_02.gif); 
background-repeat: repeat-y; 
} 
#rightBorder { 
height: 100%; 
width: 111px; 
left: 0px; 
top: 0px; 
padding: 0px; 

background-image: url(images/slicepx6_04.gif); 
background-repeat: repeat-y; 
} 

#maintable { 
height: 100%; 
width: 800px; 
left: 0px; 
top: 0px; 
padding: 0px; 
}

#contenttable { 
height: 100%; 
width: 564px; 
left: 0px; 
top: 0px; 
padding: 0px; 
}

But when I add more content to the column with the id "contenttable" it expands. Is there any way to fix it, so that when I add spaces and content the width remains same and the text goes to the next line automatically.

Any help please...

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.