soycharliente Posted March 5, 2008 Share Posted March 5, 2008 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. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted March 5, 2008 Share Posted March 5, 2008 I think you are looking for "white-space:nowrap;" http://www.w3schools.com/css/pr_text_white-space.asp Quote Link to comment Share on other sites More sharing options...
haku Posted March 6, 2008 Share Posted March 6, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.