Tables issue in php/html

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
dirgeshp
Forum Newbie
Posts: 23
Joined: Thu Jun 22, 2006 11:40 am

Tables issue in php/html

Post 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
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Moved to Client Side
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

By CSS, I'm assuming you've done:

Code: Select all

style = "width:100px;height:100px;"

Have you tried:

Code: Select all

<td width="100" height="100">
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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
dirgeshp
Forum Newbie
Posts: 23
Joined: Thu Jun 22, 2006 11:40 am

Post by dirgeshp »

Pimptastic | Please use

Code: Select all

,

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

,

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]
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
dirgeshp
Forum Newbie
Posts: 23
Joined: Thu Jun 22, 2006 11:40 am

Post 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
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

You could try fiddling with the overflow property - see what that does.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply