Text wrap / line break

Posted on 2006-04-20
Last Modified: 2008-03-10
I'm building a row in VB.Net from HTML strings.  

I need to have a field in the row that is two lines tall, and only so wide (so it will force a wrap of the content).

I tried putting a little table in, which causes the wrapping behavior, but then it causes a line break.

<DIV id=RowX><SPAN id=Fill001 width="1px">&nbsp;</SPAN>

<TABLE width=100><TBODY><TR>
<TD class=AddRow>Add Message</TD>                        <<<<  want this message to wrap if too long
</TR></TBODY></TABLE>                                            <<<< line break happens after here, unwanted

<SPAN id=Fill001 width="1px">&nbsp;</SPAN><IMG src="blahblahblah.bmp"></DIV>
{width:50px;height:20px;font-size:10px                             <<<< not finalized, seems to be irrelevant to problem

What might I do to keep the fields in this treatment on the same line?

Question by:codequest
    LVL 11

    Accepted Solution

    Hi codequest,

    I'm assuming you want 'Add Message' to wrap, next to img "blahblahblah.bmp".  How about something like this?

    Peace and joy.  mvan

    <TABLE width=400><TR>
       <TD class=AddRow width=100>Add Message</TD>
       <TD><SPAN id=Fill001 width="1px">&nbsp;</SPAN><IMG src="blahblahblah.bmp"></TD>
    LVL 2

    Author Comment

    Thanks for input.   Hmmm....Ok, I wasn't thinking to put all the contents of a the row into a table...but I'll check it out and see how it flies.
    LVL 2

    Author Comment

    Didn't exactly apply this to the specific area I was working on, but did to something close, so I'm confident this is the right answer...been out there long enough, too.

    So, thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Adobe Dreamweaver CC 2015

    Adobe Dreamweaver Creative Cloud is used by web designers and front-end developers and allows you to visualize your site in real-time as you code. This course covers exam objectives for the Adobe Certified Associate (ACA) certification.

    Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now