Page 1 of 1
Tables issue in php/html
Posted: Thu Jul 13, 2006 9:53 am
by dirgeshp
I have been having this issue for a long time now and i keep getting 100 different answers
I am trying to make a CELL in a table that is non expandable...meaning it has a "CERTAIN" width and height
i have tried CSS and DIV and offset....none of them work
can someone please point me in the right direction or show some examples
Posted: Thu Jul 13, 2006 9:54 am
by JayBird
Moved to Client Side
Posted: Thu Jul 13, 2006 10:05 am
by pickle
By CSS, I'm assuming you've done:
Code: Select all
style = "width:100px;height:100px;"
Have you tried:
I know that's not the proper way to do that, but if nothing else has worked....
Posting your code might help you get a better answer.
Posted: Thu Jul 13, 2006 10:21 am
by dirgeshp
Pimptastic | Please use Code: Select all
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]
That doesn't work either
Code: Select all
<table border="1" width="14%" id="table1">
<tr>
<td width="100" height="100">This is a test to see how wide the table cell can get<p>ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd</p></td>
</tr>
</table>
as you can see...all the "dddd" have the cell going crazy
any suggestions?
Pimptastic | Please use Code: Select all
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]
Posted: Thu Jul 13, 2006 10:31 am
by pickle
If it's like that - a solid string of characters, you are NEVER going to get the cell to be narrower than that string. If you put some spaces in there, it should work fine.
Posted: Thu Jul 13, 2006 10:34 am
by dirgeshp
What about IMAGES?
I can get away with adding spaces in there with solid strings...
how about images?
how can i get away with that?
if someone adds a image thata REALLY wider than the cell
how do i get away with that
Posted: Thu Jul 13, 2006 10:40 am
by pickle
You could try fiddling with the
overflow property - see what that does.