Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 8th, 2005, 06:14 AM
Registered User
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default html table data single line -- Solved

Hi All,

How I can display table data in a <td> tag, in "single line", right now it goes to sencond line wherever space is given, and for date wherever "-" appears.

e.g. "First Name" displays as "First" and "Name" in second line.
I want it to be as "First Name".

I have tried width option but not working.

Thanks in advace.:)

Rupen Anjaria.
We CAN'T avoid problems, but can solve it.
Old August 8th, 2005, 02:26 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Either set the CSS width of the <td> so it's large enough to hold the data you want to display or use the nowrap attribute like this:

<td nowrap="nowrap">
Contents here


Imar Spaanjaars
Everyone is unique, except for me.

Similar Threads
Thread Thread Starter Forum Replies Last Post
store a single line of text from a file....how???? danielnixon General .NET 2 May 1st, 2008 12:09 PM
Get a Single Data Value from a Table pencilneck Visual Studio 2005 1 January 8th, 2008 02:55 PM
Need to print a string value in a single line simmy_tj BOOK: Beginning Java 2 1 February 13th, 2007 06:36 AM
ASP/SQL data in HTML table columns spinout Classic ASP Basics 2 January 9th, 2005 07:02 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.