Jump to content

Archived

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

onthespot

php fonts

Recommended Posts

<span class="style5">
<?
}

echo "</td></tr><tr><td align=\"center\"><br><br>";
echo "<b>Member Total:</b> ".$database->getNumMembers()."<br>";
echo "There are $database->num_active_users registered members and ";
echo "$database->num_active_guests guests viewing the site.<br><br>";

include("include/view_active.php");

?>
</span>


[i]Can someone please help me! I want to make all the "echo" information, in a certain font, say Tahoma! Can someone please modify the code for me, would be greatly appreciated!

Thankyou![/i]

Share this post


Link to post
Share on other sites
php has no concept of fonts, that is a client side html issue. [url=http://www.w3schools/html]Here[/url] might be a good place to start learning html.

Share this post


Link to post
Share on other sites
mate, PMSL, i no how to do html etc, im just starting at php though! but that php code, is like something that i cant seem to be able to use html on! its information requested from the DB, and therefore i cant make the font for it like i would anything else! so i was tryin to ask where i put the html? or the font face?

Share this post


Link to post
Share on other sites
replace this:
[code]<td align=\"center\">[/code]
with this:
[code]<td align=\"center\" style=\"font-family:Verdana, Arial, Helvetica, sans-serif;\">[/code]
-inline css

Share this post


Link to post
Share on other sites
echo "</td></tr><tr><td align=\"center\">

";
echo "<font face=\"Tahoma\">";
echo "Member Total: ".$database->getNumMembers()."
";
echo "There are $database->num_active_users registered members and ";
echo "$database->num_active_guests guests viewing the site.
";
echo "</font>";

is what i think youre looking for... Not sure though...

Share this post


Link to post
Share on other sites
thankyou both, i used them and it worked, i will remember that for the future, cheers!

Share this post


Link to post
Share on other sites
You can also use an external CSS by just linking to it in your echo statements. Then place your 'class' tags where appropriate.

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.