Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 17-09-2007, 04:49 PM   #1 (permalink)
In The Zone
 
Kalyan's Avatar
 
Join Date: Nov 2005
Location: Earth
Posts: 241
Default Need a lil help on html.


Hi there..

I gotta write jsp coding where in I use html for the frontend. When I retrieve data and display it in a html table, in the <td></td>, if the data contains spaces, it is breaking up to be shown in rows.

Eg:

<td>Microsoft Windows XP Proffessional</td>

would show up as

Microsoft
Windows
XP
Proffessional

I know that inserting an &nbsp; would solve my issue but the data would be coming dynamically from the database and I cant insert the &nbsp; for the spaces. Is there any way to change the property of <td> to display a group of words with spaces in a single row and expand the width accordingly? any trick like using <label>, <div>, some <input> with transparent boundaries.. etc are also welcome.. Please solve this for me.
Kalyan is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 17-09-2007, 05:06 PM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: Need a lil help on html.

But checking that example of yours shows the entire thing in one line itself

Like here:



But anyway, would wrapping the text in <p> help?
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 17-09-2007, 05:14 PM   #3 (permalink)
In The Zone
 
Kalyan's Avatar
 
Join Date: Nov 2005
Location: Earth
Posts: 241
Default Re: Need a lil help on html.

Ya.. I just showed it for an example. if the table had more rows and columns, then it would show it in mutiple lines due to automatic word wrapping. Anyway, I figured it...

<td nowrap="nowrap">Microsoft Windows XP Proffessional<td>

would solve it..

Thanks for trying..
Kalyan is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
html prinz QnA (read only) 11 29-06-2007 11:10 AM
HTML to Compiled HTML(.chm) [A]bu QnA (read only) 3 20-04-2007 10:08 PM
HTML help Siddharth Maheshwari QnA (read only) 3 05-03-2007 11:13 PM
HTML COURSE???? himtuna QnA (read only) 23 14-06-2005 05:34 PM

 
Latest Threads
- by Who
- by Krow
- by clmlbx
- by Tech&ME
- by icebags

Advertisement




All times are GMT +5.5. The time now is 09:01 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2