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. Link to comment https://forums.phpfreaks.com/topic/94506-solved-force-text-to-width-of-div/ 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 Link to comment https://forums.phpfreaks.com/topic/94506-solved-force-text-to-width-of-div/#findComment-483959 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. Link to comment https://forums.phpfreaks.com/topic/94506-solved-force-text-to-width-of-div/#findComment-484507 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.