bladechob Posted March 20, 2007 Share Posted March 20, 2007 I'd like to format text that's returned as an echo from a form action ie. font colour alignment. Despite putting the css style on the php page I'm just getting default values. What's the secret please? Link to comment https://forums.phpfreaks.com/topic/43474-echo-text-formatting/ Share on other sites More sharing options...
pikemsu28 Posted March 20, 2007 Share Posted March 20, 2007 can you post the code? Link to comment https://forums.phpfreaks.com/topic/43474-echo-text-formatting/#findComment-211114 Share on other sites More sharing options...
bladechob Posted March 20, 2007 Author Share Posted March 20, 2007 ta dah - here it is - $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); if($success){ echo '<p><b><br><br> <br> <br> <br><br> <br> Thank you. We will be contacting you shortly with our best price for your request. <a href="http://www.vividproductions.biz/transconnect/welcome.php">Back</a> to site home page</a> </b></p>'; } Link to comment https://forums.phpfreaks.com/topic/43474-echo-text-formatting/#findComment-211118 Share on other sites More sharing options...
pikemsu28 Posted March 20, 2007 Share Posted March 20, 2007 where is your css code? try giving your paragraph a class and set up the css for that class <!-- css --> p.paragraph { text-align: center; color: #000; } <?php echo '<p class="paragraph">Thank you. We will be contacting you shortly with our best price for your request. Back to site home page</p';?> Link to comment https://forums.phpfreaks.com/topic/43474-echo-text-formatting/#findComment-211120 Share on other sites More sharing options...
bladechob Posted March 20, 2007 Author Share Posted March 20, 2007 muchos gracias! By the way which keys do you use to post code? Link to comment https://forums.phpfreaks.com/topic/43474-echo-text-formatting/#findComment-211124 Share on other sites More sharing options...
pikemsu28 Posted March 20, 2007 Share Posted March 20, 2007 the # button or you can type [ code ] [ /code ] without the spaces Link to comment https://forums.phpfreaks.com/topic/43474-echo-text-formatting/#findComment-211126 Share on other sites More sharing options...
bladechob Posted March 20, 2007 Author Share Posted March 20, 2007 grande gracias Link to comment https://forums.phpfreaks.com/topic/43474-echo-text-formatting/#findComment-211128 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.