467,910 Members | 1,893 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,910 developers. It's quick & easy.

wrapping long lines (div tag)

100+
hi,
I have a div tag. Its width is 200px,

now, what happens is that when the text size is large, then the div expands, even though the size is set to 200px, so i would like to know whether there is technique for forcing the text to wrap at the edge of the div.

thanks,
gomzi.
Apr 18 '07 #1
  • viewed: 3893
Share:
3 Replies
drhowarddrfine
Expert 4TB
Well, that shouldn't be happening and, as the stickies say, without the complete code or a link, we can't help you.
Apr 18 '07 #2
100+
Well, that shouldn't be happening and, as the stickies say, without the complete code or a link, we can't help you.


Here's the code,
<div class="divborder">
<table width="200px">
<tr>
<td>
toshiba_samsung_sony_microsoft_google_oracle@T.C
</td>
</tr>
</table
</div>

I am quite certain that its because of the kind of text that i am trying to display in the div.
i.e. one with no spaces.
so is there any way to wrap the lines in case it tries to exceed the boundary ?
Apr 30 '07 #3
drhowarddrfine
Expert 4TB
Search for this on this forum. 'word-wrap' is an IE-only property but, iirc, is part of CSS3 and supported by Firefox and others. But double check on that and let us know. We had a recent post about it.
May 1 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by PJ | last post: by
4 posts views Thread by DKode | last post: by
2 posts views Thread by Andrzej Kaczmarczyk | last post: by
7 posts views Thread by zeyais | last post: by
6 posts views Thread by Markus Ernst | last post: by
28 posts views Thread by Joe Reynolds | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.