Kane250 Posted August 21, 2008 Share Posted August 21, 2008 I have a class created for text in a div that I am adding a lot of text to. However, I am having an issue where I cannot do a double space after a period, even using  , it does nothing. Is something wrong with my css class? Maybe my div? p.crewtitles { font-family: myriad pro, century gothic, sans-serif; font-size: 16px; color: black; } #fullcontent { background:transparent; overflow: auto; position: relative; float: left; padding-left: 10px !important; padding-right: 10px!important; width: 780px; height: 527px; margin-left: auto; margin-right: auto; } Link to comment https://forums.phpfreaks.com/topic/120654-cannot-get-a-space-or-even-a-nbsp/ Share on other sites More sharing options...
haku Posted August 21, 2008 Share Posted August 21, 2008 HTML doesn't like double spaces. Try putting the whole thing in 'pre' tags, or use this CSS: white-space: pre; Link to comment https://forums.phpfreaks.com/topic/120654-cannot-get-a-space-or-even-a-nbsp/#findComment-621736 Share on other sites More sharing options...
Kane250 Posted August 21, 2008 Author Share Posted August 21, 2008 is there any other way? adding pre made all my text go horizontally along one line and added a horizontal scroll bar...looks nicer but really messed up my text.. Link to comment https://forums.phpfreaks.com/topic/120654-cannot-get-a-space-or-even-a-nbsp/#findComment-621746 Share on other sites More sharing options...
Kane250 Posted August 21, 2008 Author Share Posted August 21, 2008 Nevermind, I discovered how to wrap the text. Thanks for the tip! Link to comment https://forums.phpfreaks.com/topic/120654-cannot-get-a-space-or-even-a-nbsp/#findComment-621780 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.