473,854 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

In <TD> certain length/max length then force <BR>

200 New Member
Hi, I need help please.

In <TD> certain length/max length then force <BR>

I would like within a <TD> to allow certain amount of char and then force a <br>.

Is this possible, Please Assist!

Regards
Nov 5 '08 #1
4 3833
Dormilich
8,658 Recognized Expert Moderator Expert
not by html only, but why?

regards
Nov 5 '08 #2
ismailc
200 New Member
Hi, have a double posted?
Can't recall as iwas in hurry to post before leaving.
Apologies if i did.

What i want is HTML text wrap/word wrap as i have 2 columns in whcih the one column string is built on user selection - when it's long it goes over the second column which has image.

Regards
Nov 5 '08 #3
Death Slaught
1,137 Top Contributor
You could give your division/paragraph (whatever is holding your text) a set width, but as Dormilich mentioned you can not wrap it with a specific number of characters using HTML/CSS alone.

Thanks,
{\_/}
(' . ')
(")[DEATH](")
(")(")
Nov 5 '08 #4
Dormilich
8,658 Recognized Expert Moderator Expert
the closed thing to a wrap after x characters would be a width defined in units of font size (if your font-size is 1em the average character width should be between 0.5em and 1ex, or am I wrong there?)

regards
Nov 6 '08 #5

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

Similar topics

2
11234
by: js | last post by:
I have a table rendered with XSLT. The first column has a radio button controls for user to make a selection for a particular row. All the values in the remaining columns are all concated with a &#xA0; (blank). I need to retieve the text in each cell of that row if the radio button on that row is clicked. Each <TD> has a numeric ID so that I can use it with document.getElementById().innerText method. I use Javascript to assign some...
0
5085
by: Sara T. | last post by:
How can I wrap a long text in tag <TD> ? I see even I specify width in table or <TD>, it doesn't wrap if my text have no <BR> or any SPACES. Or this is common problem.
1
3198
by: neverstill | last post by:
hi- I have a table on a page there is 1 row and 2 cells cell 1 has a user control that is basically just a DataList nested in a table o fit's own. then, below that user control I have some <p> tags to give me vertical space, then after that I have an <asp:image> control. Now, I just added the asp:image control. when I did, it put about 10-12
1
1725
by: Steve Richter | last post by:
I have a simple table with two columns. The first column contains 5 lines of text. The second column contains an iFrame. The iFrame in turn contains a web page. The problem is it does not display at all like I would like it to. I want the column height to expand to the contents of either column. Instead, since I guess the browser does not know the height of the IFrame column, it is the height of column 1 that determines the height. ...
4
4354
by: Christofer Dutz | last post by:
Hi, I am having a small problem, that is driving me nuts. My application reads some Xml and runs 2 Xsl Transformations to generate HTML. As soon as my second XSL introduces some <br/tags, the application crashes with the same error message I would get when writing <brand no closing tag. To make everything a little stranger, even <br></brseems to be bad while <lbr/is fine. Ive tried some other tag names and the problem only appears with...
3
12234
by: workingstiff19 | last post by:
First, I'm glad to find a newsgroup that still uses a FAQ: http://www.htmlhelp.com/faq The challenge: These checkboxes (inside a table data TD tag) came out too squeezed together (vertically) so I tried to double-space them with the CSS "line-height" parameter. That did not work (at least for the IE browser), so I put an extra break (BR) tag inside the TD and it works great, but now it's a little TOO spacey.
4
4135
by: Nathan Sokalski | last post by:
I have a <tdthat contains several elements, some of which are left-aligned, right-aligned, or centered. I do not know the widths of these elements beforehand, so I cannot give my <tda fixed width. I want the <td> to have as small a width as possible without causing anything to wrap, but IE seems to want to make it bigger. Does anybody know of a good way to prevent a <tdfrom being stretched to a larger width than necessary? Thanks. --...
0
2725
by: Andy Dingley | last post by:
Background: I have a bunch of (yet unwritten) code for a JSP tag library to generate "tables" of data.The same tag library will be re-used to generate a great many "complex data view" pages. In nearly all contexts for this app, the appropriate HTML to generate is simple <table... <td ... </tablemarkup, with CSS default rendering applied to it. A database recordset maps quite simply column to column, with the recordset column names used...
9
3326
by: Lloyd Sheen | last post by:
I have now spent the entire morning on what I think should be easy. I cannot for the life of me figure out how to make a simple one row, two column table where is the contents of the one of the colums exceeds 100% of the height it should add a scroll bar to ensure that the table remains at 100% of the browser screen and the contents do not scroll off the end of the page. HELP please Lloyd Sheen
0
9902
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11035
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10688
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9520
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7083
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4163
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3190
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.