View Full Version : Font size tag :)
Hi!
I have a problem. How can I define font size in PHP page?
Becouse standard <font size="xx"> </font> doesn`t work...
And font size=+2 font doesn`t work either
What`s the tag for font size changing?
wheezy360
02-19-04, 12:12 PM
Hi!
I have a problem. How can I define font size in PHP page?
Becouse standard <font size="xx"> </font> doesn`t work...
And font size=+2 font doesn`t work either
What`s the tag for font size changing?
The <font> tag is deprecated. Try using CSS.
<span style="font-size: 14px;"> Text To Change </span>
Thx, I will try.
And another question. Is it possible to specify font size for all page? (that font will be in same size in whole page?)
NeverMind
02-19-04, 02:10 PM
yes it is possible, add the following code in <HEAD> of your page ..
<style type="text/CSS">
<!--
body {
font-family: Tahoma; font-size: 12px; text-align: left;
}
-->
</style>
hmmmm...
But when I added this code:
<span style="font-size: 14px;">
it returned me an error:
Parse error: parse error, expecting `','' or `';''
it returns me always arror when I have "" in tags...why? what is wrong?
YourPHPPro
02-19-04, 02:21 PM
Moved to CSS/HTML Forum....
techexpressinc
08-15-08, 11:04 AM
I been having the same problem. PHP seems to be limited on what tags you can use. I think it is we are trying javascript/html within a PHP secession. One other battle I am having within PHP is linking to a pop-up or off to another web page.
A PHP expert can tell us for sure.
Another newbie to PHP. Russ
PHP seems to be limited on what tags you can use.
PHP has actually absolutely nothing to do with this. Post your code and we'll take a look at it. You must be doing something else wrong...
leeprice2006
08-16-08, 07:55 PM
i'm guessing that they are doing something like
echo "<span style="font-size: 14px;">"
if so you are getting the error because you have " in the echo
try
echo "<span style=\"font-size: 14px;\">"
or
echo "<span style='font-size: 14px;'>"
either will work
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.