-How to change font size in php?

This is a discussion on -How to change font size in php? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi Can someone please provide the proper php syntax for changing the font size? Below is an example in plain ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-15-2003
Tony Wilson
 
Posts: n/a
Default -How to change font size in php?

Hi

Can someone please provide the proper php syntax for changing the font
size? Below is an example in plain English so you'll understand the above
question.
---------------------------------------------------------------------------
START
FONT SIZE=18
ECHO "XXXX"
/FONT
FONT SIZE=12
ECHO "ABC"
/FONT
END
================================================== =========================

thanks
Reply With Quote
  #2 (permalink)  
Old 09-15-2003
Andy Hassall
 
Posts: n/a
Default Re: -How to change font size in php?

On Mon, 15 Sep 2003 20:20:30 GMT, Tony Wilson <tony@tonydisabled.com> wrote:

>Hi
>
>Can someone please provide the proper php syntax for changing the font
>size? Below is an example in plain English so you'll understand the above
>question.
>---------------------------------------------------------------------------
>START
>FONT SIZE=18
>ECHO "XXXX"
>/FONT
>FONT SIZE=12
>ECHO "ABC"
>/FONT
>END
>================================================= ==========================


You can't change the font size in PHP - there isn't a font to change. You
change it in the HTML or CSS that you output using PHP.

http://www.w3.org/TR/html4/present/g....html#h-15.2.2
http://www.w3.org/TR/REC-CSS1
http://www.w3.org/TR/REC-CSS1#font-size

--
Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Reply With Quote
  #3 (permalink)  
Old 09-16-2003
Thomas Kaarud
 
Posts: n/a
Default Re: -How to change font size in php?


"Andy Hassall" <andy@andyh.co.uk> wrote in message
news:g59cmvsbd3ev04jvfq10i1qa497gq9efm4@4ax.com...
> On Mon, 15 Sep 2003 20:20:30 GMT, Tony Wilson <tony@tonydisabled.com>

wrote:
>
> >Hi
> >
> >Can someone please provide the proper php syntax for changing the font
> >size? Below is an example in plain English so you'll understand the above
> >question.

>
>---------------------------------------------------------------------------
> >START
> >FONT SIZE=18
> >ECHO "XXXX"
> >/FONT
> >FONT SIZE=12
> >ECHO "ABC"
> >/FONT
> >END

>
>================================================= ==========================
>
> You can't change the font size in PHP - there isn't a font to change. You
> change it in the HTML or CSS that you output using PHP.
>
> Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)



Well, I think we all understand what he means:

echo "<font size=18>XXXX</font>";
echo "<font size=12>ABC</font>";

Thomas.


Reply With Quote
  #4 (permalink)  
Old 09-18-2003
Savut
 
Posts: n/a
Default Re: -How to change font size in php?

You can use php to write HTML tags that will change the size. True, but
it's still html that change the size of your text and not php.

"Andy Hassall" <andy@andyh.co.uk> a écrit dans le message de
news:g59cmvsbd3ev04jvfq10i1qa497gq9efm4@4ax.com...
> On Mon, 15 Sep 2003 20:20:30 GMT, Tony Wilson <tony@tonydisabled.com>

wrote:
>
> >Hi
> >
> >Can someone please provide the proper php syntax for changing the font
> >size? Below is an example in plain English so you'll understand the above
> >question.

>
>---------------------------------------------------------------------------
> >START
> >FONT SIZE=18
> >ECHO "XXXX"
> >/FONT
> >FONT SIZE=12
> >ECHO "ABC"
> >/FONT
> >END

>
>================================================= ==========================
>
> You can't change the font size in PHP - there isn't a font to change. You
> change it in the HTML or CSS that you output using PHP.
>
> http://www.w3.org/TR/html4/present/g....html#h-15.2.2
> http://www.w3.org/TR/REC-CSS1
> http://www.w3.org/TR/REC-CSS1#font-size
>
> --
> Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
> Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)



Reply With Quote
  #5 (permalink)  
Old 09-18-2003
Andy Hassall
 
Posts: n/a
Default Re: -How to change font size in php?

On Thu, 18 Sep 2003 15:42:26 -0400, "Savut" <webki@hotmail.com> wrote:

>"Andy Hassall" <andy@andyh.co.uk> a écrit dans le message de
>news:g59cmvsbd3ev04jvfq10i1qa497gq9efm4@4ax.com.. .
>>
>> You can't change the font size in PHP - there isn't a font to change. You
>> change it in the HTML or CSS that you output using PHP.

>
>You can use php to write HTML tags that will change the size. True, but
>it's still html that change the size of your text and not php.


Is there an echo in here? ;-)

--
Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Reply With Quote
  #6 (permalink)  
Old 09-19-2003
Savut
 
Posts: n/a
Default Re: -How to change font size in php?

YES!!!

echo "<font size='18'>BIG</font>";
echo "<font size='12'>SMALL</font>";

"Andy Hassall" <andy@andyh.co.uk> a écrit dans le message de
news:d4bkmv4o4das80f08o2sbn11q81eptrles@4ax.com...
> On Thu, 18 Sep 2003 15:42:26 -0400, "Savut" <webki@hotmail.com> wrote:
>
> >"Andy Hassall" <andy@andyh.co.uk> a écrit dans le message de
> >news:g59cmvsbd3ev04jvfq10i1qa497gq9efm4@4ax.com.. .
> >>
> >> You can't change the font size in PHP - there isn't a font to change.

You
> >> change it in the HTML or CSS that you output using PHP.

> >
> >You can use php to write HTML tags that will change the size. True, but
> >it's still html that change the size of your text and not php.

>
> Is there an echo in here? ;-)
>
> --
> Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
> Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:06 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0