Jump to content


Photo

How to format text using Echo?


  • Please log in to reply
3 replies to this topic

#1 cnagra

cnagra
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 18 April 2006 - 10:27 PM

hi

i need this text to be red, tahoma, and size 16. what do i have to do to add to the code?

thanks

echo "Record Updated Successfully - Update Another ?";

#2 ypirc

ypirc
  • Members
  • PipPipPip
  • Advanced Member
  • 54 posts

Posted 18 April 2006 - 10:33 PM

You don't format text design with PHP. You do that with HTML or CSS.

#3 cnagra

cnagra
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 19 April 2006 - 12:34 AM

hi

i 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>";

thanks

its ok

i got it to work, thanks anyway

#4 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 19 April 2006 - 01:19 AM

Use the "style" attribute
<?php
echo '<span style="font-family:Tahoma;color:red;font-size:200%">Stock Updated Successfully - Update Another ?</span>';
?>
The "style" attribute is the in-line way of applying CSS attibutes to data on you pages. Learn CSS.

Ken




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users