View Full Version : Changing font of php created text...
blah-de-blah
September 15th, 2003, 11:11 AM
How would you do this? I've tried css which usually works, as well as:
print "<font face="verdana">your message has been successfully sent</font>";
I thought that would work, but no luck :-\ any clues? thanks. Oh and do tags like < br > and everything work in the php thing?
λ
September 15th, 2003, 11:39 AM
yeah, you can just go print("<br />"); to print a line break. You should remember to put slashes before your quotes, or you'll get a parse error. For example:
//incorrect: will give a parse error
print("<font face="verdana">blah</font");
//correct:
print("<font face=\"verdana\">blah</font>");
Although it's probably better to use CSS now, as the FONT tag is depreciated.
Syntax
September 15th, 2003, 02:44 PM
yes use css, or you can also use
echo "<font face=verdana>blah</font";
without quotes :)
ahmed
September 15th, 2003, 02:47 PM
or
print '<font face="verdana">your message has been successfully sent</font>'; :P
Jubba
September 15th, 2003, 03:53 PM
or
echo "<font face=\"verdana\">your message</font>";
blah-de-blah
September 16th, 2003, 06:23 AM
wow so many options...but they all look the same :P thats what i love about kirupaforums :) Anyways...whats the difference with echo and print?? oh and <a href.... stuff work too right? thanks
blah-de-blah
September 16th, 2003, 06:29 AM
Oh yea...while i've got so many of your attentions....how would you embed special fonts so that all computers can read the font?? thanks again :P
Syntax
September 16th, 2003, 09:10 AM
who view your site should download and install that special font you used in the html pages. or u create images with that particular fonts to create titles, menus or things like that
with print you can output only one string, while with echo you can output one or more string.
all the html tags you print on screen with 'print' or 'echo' will work.
blah-de-blah
September 16th, 2003, 10:17 AM
Oh **** so there is really no other way intead of making hte user download the font?? Because i was planning on using flash pixel fonts :( thanks
Syntax
September 16th, 2003, 12:00 PM
you can do it with activeX controls like http://www.cyberfast.org but i don't know how do it.
bye
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.