Register  |  Login

Question Details    

   Question

Time: 07:32 - Mar 22, 2007     Asked by: sbjc23      Status: Answered      Points: 75   

Is there a way to prevent the text from wrapping using HTML and CSS?

I am looking to create a table but I dont want my links to wrap at all within a table if they are too long, is there any way to accomplish this where it just pushes the table out?

Ask a New Question

Become a Quomon Expert

Current Categories

 

Other Questions Needing Answers


   

Answer Discussion
Answer Discussion
Answer Summaries
Answer Summary
 
Hello...

Your mileage is going to vary with this one, mostly because of the way the browsers treat "containers" which both tables and table cells fall under the category of.

In order for this to work *most* of the time in *most* browsers, you're going to have to ensure that you do not have any fixed widths (either pixel or percentage) on both the table cell and the table itself.

Once you've made sure the table is as flexible as possible, you'll want to wrap your link inside a <nobr></nobr> element, and apply a style class including the "white-space: nowrap" specification in it.

Again, this is not going to be 100% in all browers because a) <nobr> is not an HTML standardized element and is only understood by some browers, and b) white-space: nowrap is an adopted CSS element, but it too is not supported by all browsers.

I hope this gets you back on track,
Ric

Expert:

rcastagna

Date:

Mar 22, 2007

Time:

11:19

 

Votes: Good (0) | Bad (0)
Login to rate this answer

Thanks Ric

Expert:

sbjc23

Date:

Mar 22, 2007

Time:

12:05

 

Votes: Good (0) | Bad (0)
Login to rate this answer

Question Answered

This question has been answered, and points have been rewarded to the following experts:

rcastagna: 75

You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for this question by clicking on the "Answer Summaries" Tab.

 
No summaries have been submitted yet. Want to be the first?



Respond to this question:

New User

  Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:


Forgotten Password

 

New User

  Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:


Forgotten Password
   

"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it


All Questions


Language Options

English:

www.quomon.com

Español:

www.quomon.es

Sponsors

Questions and Answers Software
Real Estate Postcards
Marketing Fulfillment