and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
i am trying to make a 2 cells in a table using php
the problem is ... i have set the WIDTH and yet...the cell STILL keeps getting bigger...
is there a way to make it so the CELL does not get bigger and stays CONSTANT no matter what..
[syntax="html"]<table border="1" width="100%" id="table1">
<tr>
<td width="100">ddddddddddddddddddddddd</td>
<td width="200">ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd</td>
</tr>
</table>
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Every box object scales to fit the content inside of it. It looks like you're not using overflow correctly or something.
Would you please show us your code?
P.S. I don't think tables support overflow.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[syntax="html"]<table border="1" width="10%" id="table1" height="50">
<tr>
<td style="width: 50px; border: 1px solid red;overflow:auto;">
dddddddddddddddddddddddddddddddddddddddddddddddddddd</td>
</tr>
</table>
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
overflow doesn't work in TD elements. You need to do
[syntax="html"]<TD>
<DIV style="overflow: auto; width: 200px">
dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd
</DIV>
</TD>
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]