Jump to content

[SOLVED] Force text to width of div


soycharliente

Recommended Posts

Is it possible to force a line of text to only display on 1 line no matter what browser you're in?

 

For example, I have a header that fits perfectly across 1 entire line in FF and IE across all OS except FF on Linux. The last word is pushed to the next line.

 

I was experimenting with 'width' but that doesn't resize text.

 

I guess I'll just have to settle for sizing the text down bit by bit until it doesn't start a new line unless someone else says something that might help.

Link to comment
Share on other sites

What he said. That will do what you want.

 

You should never count on text size though, as users will often resize their text. I do all my programming at home on a 40" widescreen TV, and sit quite far away, so I resize everything.

 

Also, different monitors will display things differently.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.