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
https://forums.phpfreaks.com/topic/94506-solved-force-text-to-width-of-div/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.