Jump to content

Archived

This topic is now archived and is closed to further replies.

cnagra

How to format text using Echo?

Recommended Posts

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

Share this post


Link to post
Share on other sites
You don't format text design with PHP. You do that with HTML or CSS.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Use the "style" attribute
[code]<?php
echo '<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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.