mrt003003 Posted April 7, 2011 Share Posted April 7, 2011 Hi there i think im having trouble with my css.. .moncalimari { position: absolute; visibility: visible; left: 1560px; top: 352px; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: 12px; } When i enter the text "Mon Calimari" the Calimari bit is entered on a new line... I want it to stay together on the same line "Mon Calimari" Is there something missing from my css??? Thanks Link to comment https://forums.phpfreaks.com/topic/233012-a-space-between-text-creates-new-line-for-2nd-word/ Share on other sites More sharing options...
mrt003003 Posted April 7, 2011 Author Share Posted April 7, 2011 Incase i seem a bit vague im echoing the variable: $moncalimari = "Mon Calimari 1-1-2-6"; echo '<p class="moncalimari">' . $moncalimari . '</p>';} When the text is diplayed on screen it looks like: Mon Calimari 1-1-2-6 Thanks Link to comment https://forums.phpfreaks.com/topic/233012-a-space-between-text-creates-new-line-for-2nd-word/#findComment-1198406 Share on other sites More sharing options...
nogray Posted April 7, 2011 Share Posted April 7, 2011 Your .moncalimari is too far to the left, so the width will be as wide as the longest word. Setting the width property will fix the issue. Link to comment https://forums.phpfreaks.com/topic/233012-a-space-between-text-creates-new-line-for-2nd-word/#findComment-1198427 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.