-
July 11th, 2014, 08:26 AM
#1
Using Fixed and Dynamic columns in a table?
Hello everyone,
II would like to have a HTML table with 6 columns. The Table width is 1500. The last 2 columns I want fixed at 150px. The remaining columns I want no formatting. I don't want any of the rows to wrap text if the content gets too large.
How do i code this correctly in HTML?
-
July 16th, 2014, 09:28 AM
#2
Re: Using Fixed and Dynamic columns in a table?
Set the last 2 <td> cells to be 150px and make sure the white-space with your preferred property.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
July 17th, 2014, 08:04 AM
#3
Re: Using Fixed and Dynamic columns in a table?
I doubt you can do what you want, tables are notoriously known for not respecting things like overflow.
The whole point about tables is that they auto adjust to accommodate various content, and trying to defeat that typically won't work.
what would work, but it may not suit your need, is stick a div inside the td. That div needs to have a fixed width (not a %), overflow:hidden and white-space:nowrap.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|