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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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) |
|
|||
|
"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. |
|
|||
|
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) |
|
|||
|
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) |
|
|||
|
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) |