By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,445 Members | 1,160 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,445 IT Pros & Developers. It's quick & easy.

wrapping long lines (div tag)

100+
P: 304
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
Share this Question
Share on Google+
3 Replies


drhowarddrfine
Expert 5K+
P: 7,435
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+
P: 304
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 5K+
P: 7,435
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.