merveilles Posted May 24, 2010 Share Posted May 24, 2010 Is there a way to set the font so the words will be 100% of the available width? Right now I'm using a large font (like 64px) and it works fine, but for longer words/sentences, parts break into a new line. I want everything on just one line. I guess something like a 100% max width is what I'm looking for.. but I'm not sure if this is possible.. Link to comment https://forums.phpfreaks.com/topic/202713-100-font-width/ Share on other sites More sharing options...
haku Posted May 24, 2010 Share Posted May 24, 2010 text-align:justify; Link to comment https://forums.phpfreaks.com/topic/202713-100-font-width/#findComment-1062555 Share on other sites More sharing options...
merveilles Posted May 26, 2010 Author Share Posted May 26, 2010 That's not really what I meant.. That would make one line 100% of the width, but it doesn't help if the word/sentence is too long and breaks into another line.. Link to comment https://forums.phpfreaks.com/topic/202713-100-font-width/#findComment-1063555 Share on other sites More sharing options...
haku Posted May 26, 2010 Share Posted May 26, 2010 white-space:nowrap Link to comment https://forums.phpfreaks.com/topic/202713-100-font-width/#findComment-1063694 Share on other sites More sharing options...
merveilles Posted May 30, 2010 Author Share Posted May 30, 2010 I guess that's the best CSS can do for now.. It fixed my problem though. Thanks for the reply! Link to comment https://forums.phpfreaks.com/topic/202713-100-font-width/#findComment-1065293 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.