cnagra Posted April 18, 2006 Share Posted April 18, 2006 hii need this text to be red, tahoma, and size 16. what do i have to do to add to the code?thanksecho "Record Updated Successfully - Update Another ?"; Link to comment https://forums.phpfreaks.com/topic/7787-how-to-format-text-using-echo/ Share on other sites More sharing options...
ypirc Posted April 18, 2006 Share Posted April 18, 2006 You don't format text design with PHP. You do that with HTML or CSS. Link to comment https://forums.phpfreaks.com/topic/7787-how-to-format-text-using-echo/#findComment-28382 Share on other sites More sharing options...
cnagra Posted April 19, 2006 Author Share Posted April 19, 2006 hii got the text to be a certain size, but cant get it to be Tahoma text...can anyone give me the code. the code i got so far is: echo "<FONT SIZE=4>Stock Updated Successfully - Update Another ?</FONT>";thanksits oki got it to work, thanks anyway Link to comment https://forums.phpfreaks.com/topic/7787-how-to-format-text-using-echo/#findComment-28417 Share on other sites More sharing options...
kenrbnsn Posted April 19, 2006 Share Posted April 19, 2006 Use the "style" attribute[code]<?phpecho '<span style="font-family:Tahoma;color:red;font-size:200%">Stock Updated Successfully - Update Another ?</span>';?>[/code]The "style" attribute is the in-line way of applying CSS attibutes to data on you pages. Learn CSS.Ken Link to comment https://forums.phpfreaks.com/topic/7787-how-to-format-text-using-echo/#findComment-28426 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.