insideorkut.com

I own www.thepalmbeachcookie.com and www.theyogacookie.com, I wish to transfer my iPage site..how to

Click Here To View All Answers...


First of all I own www.thepalmbeachcookie.com and www.theyogacookie.com, I wish to transfer my iPage site..how to Looking forward for any answer or 2. My 2nd question... Hello group.

I have problem with Table size, the table generates with asp code but what is important is the size of table changes if the text inside <td> tag is big..

This is what I am talking about in code:.

<center><table width = 180>.

<tr>.

<td width = 180> ""here texts come from database with diferrent sizes"" </td>.

</tr>.

</table></center>.

The size of table changes with long texts, I want to cut the text into new line exactly like this forum and save table size 180p..

What is the problem?.

Thanks in advance...

Comments (4)

Good question... I dunno what is the right answer to your question. I'll do some Googling and get back to you if I bump into an answer. You should email the people at iPage as they probably could answer your iPage question..

Comment #1

Thank you ucm.

This cleared many things for me. now what I need is a way to wrap the long word into 2 lines for example:.

ThisWordIsVeryBigAndCantFitIn180Pixel.

And the new line size fit into my table size. in your example the second code worked fine but how can I do this with a text from database?Is that to add dash between words and how recognize words or how detect the word's size?.

I know this sounds stupid to ask here but if you know how to avoid abuse of sending these sorts of text to forum,comment, whatever please give me some tips..

Thanks..

Comment #2

It's not supid at all, we've all been there when it should makes sence but we're just miss'n a liiiittle something or other....

I would recommend using your asp to search the sizes of the words and if they are say too big then to insert a space in there at the specific locations in the string and Then print the word and goto the next one....

Edit.

O_O &nbsp;&nbsp;&nbsp;I.

CAN"T BELIEVE.

I didn't think of this before....

An even better way would be to let an anchor do the work for you.

Something like:.

Although I think this only works in ie5.x and later, if you want other browsers to do it then it will become a bit more complicated as you would need to have asp search each word ( before printing it to the user ) for it's length and break it up if it's too big... if you go the asp word search route, I would suggest creating a function with 2x parameters, the text string to search for too big of words and the max word length that no word can be bigger than....

I could probably hook up a javascript example of this and then you could take that to your asp resources to convert the idea into asp code if you wish... ( might take a little while ).

/edit..

Comment #3

Man! that's exactly what I want, thanks so much..

I have no clue where did you find this or how did you figur it out but however you did, it was great..

Thanks.

...

Comment #4

Im glad to have help ya out....

I found it by looking for a css poroperty to do something very simular to what you were going for....

Try your favorite search engine like google or yahoo for something like.

Quotes included to narrow the search even more ).

"css word-wrap".

Btw, everything i've seen so far says that this only works on ie 5.x and up.

Some time ago, scout posted a link to where you can get a good list of css properties, if he reads this : please post that link again, I couldn't find it searching for it on the forum search thingy, my bad..

Comment #5


This question was taken from a support group/message board and re-posted here so others can learn from it.