473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

wrapping long lines (div tag)

304 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
3 4013
drhowarddrfine
7,435 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
gomzi
304 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
7,435 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

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

Similar topics

7
by: PJ | last post by:
I have two img elements in a div tag, the first set up w/ float:left and the second set up w/ float:right. When the browser's window width is less than the total width of the two images second img...
4
by: DKode | last post by:
Ok, I signed up for a blogger.com account today and when I went to edit the template design I noticed it is written in pure CSS. At the sight of this I danced for joy, as I am currently writing...
2
by: Andrzej Kaczmarczyk | last post by:
Hi I am experiencing something weird. maybe you could help me. I have two ineditable classes from outsource libraries: DataColumn and GridColumn I have built a wrapper class around...
4
by: jawolter | last post by:
I have text that is too long to nicely fit on a given page, so I want to add ellipses to the end that dynamicaly resize based on the person resizing the page width. If you hover it would show the...
7
by: zeyais | last post by:
Here is my HTML: <style> ..leftcolumn{float:left;width:300px;border: 1px solid #ccc} ..rtcolumn{float:left;width:600px;border: 1px solid #ccc} </style> <body> <div class="leftcolumn"...
6
by: Markus Ernst | last post by:
Hi Searching for a possibility to display some text with preserved white space and line breaks, but with long lines being wrapped, I found this CSS declaration, which I found helpful: pre {...
3
by: mcwd | last post by:
I'm trying to put a border around a link when the mouse rolls over it. I've made an example below and left out the hover to keep it simple. In IE the example below draws a box arround the image OK,...
28
by: Joe Reynolds | last post by:
this is kinda off topic, but not totally. i have an ASP page that pulls text from a database, stores it in a variable, then uses <%= variable %to write the text inside an html table. the problem...
5
by: dubing | last post by:
Hi, We have some html source like this: <div class="survey"> <form action="students/cbe-graduate-students/survey.html" method="post" id="frmPbSurvey"> <fieldset class="survey_item">...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.