[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

Text wrap / line break

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>
===========================================
.AddRow
{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?

Thanks
0
codequest
Asked:
codequest
  • 2
1 Solution
 
mvan01Commented:
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>
</TR></TABLE>
0
 
codequestAuthor Commented:
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.
0
 
codequestAuthor Commented:
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!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now