Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Font question

Status
Not open for further replies.

EvertonFC

Technical User
Nov 24, 2004
107
GB
Hello

I have the following, which works:

<HTML>
<HEAD>

<? print(Date(" I dS F Y"));?>

<BODY>
</BODY>
</HTML>

I now wish to insert a couple of font commands and understand I have to do it with:

<?php
$pdfSetFont->(Verdana,'B','Navy' '16');
?>

Is this right, because I can't seem to get it to work. Should these tags be between the closed </HEAD> and open <BODY> tags? Seems strange.

Thanks

Steve
 
Steve,

What is it you are trying to do? You have pasted the skeleton for an HTML document, but you are attempting to set some server-side php array.

Are you attempting to change the look of the text on the screen (of the HTML document)? If so, you really want to ask this on the HTML, XHTML & CSS forum... since it's nothing to do with PHP at all [smile]

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
This:

$pdfSetFont->(Verdana,'B','Navy' '16');

can't be right. It's not well-formed PHP code.


And where in your HTML output this function's output should appear is entire dependent on what the function is supposed to do, and where you need that output on your page.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
OK

At the moment, I have today's date written as Friday 11th November. It is written in PHP between the HTML tags.

Now, what I'm trying to do is have that same date in Verdana, maybe navy, and a different size.

I am trying to experiment with different PHP commands, that's all.

Cheers.

Steve
 
Take this to the HTML, XHTML & CSS forum. It's nothing to do with PHP.

You can solve this using CSS alone.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
Steve,

Listen to me... what you are attempting to do has nothing to do with PHP. You want to style some text on an HTML page (it doesn't matter HOW the text got there or HOW the page was processed before you got it).

Here is what you are attempting to do - in your own words:
Now, what I'm trying to do is have that same date in Verdana, maybe navy, and a different size.

One last time from my original post:
BabyJeffy said:
...ask this on the HTML, XHTML & CSS forum... since it's nothing to do with PHP at all...

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
its html, all php is doing is providing the date, HTML is the bit you use to format the output as eye candy.

<font face=verdana size=8 color=pink><?php print(Date(" l dS F Y")); ?> </font>

all html tags, php only provides the string.

its just the same as <font face=verdana size=8 color=pink>Fri 11th Nov 2005</font>

which means .. see this forum

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top